The answer is: larger horses have longer legs.
The ancestors of horses lived in the forest, where they could hide from the predators. But, with the first steppes, they could be spotted by the predators. Horses had to adapt in order to survive. Thus, their legs became longer through time so horses could run faster to escape predators.