Answer
It is because of inertia of motion. According to Newton's first law, an object at rest stays at rest and an object in motion stays in motion with the same speed and in the same direction unless some net external force acts on it.
Work Step by Step
In this case as soon as the brakes are applied, the body will tend to move in the same direction due to inertia of motion.