What is the advantage of a rear engine car?

It is all about weight distribution. Best handling is achieved with 50% of weight on front wheels and 50% on rear wheels. The engine is the heaviest item in the car, so where you place the motor has big impact on weight distribution. Many race cars and sports cars try to get the motor in the middle of the car. Not a great place if you want a trunk, storage space, and room for passengers; but great for handling at high speeds.