Nobody really knows. It was decided back in the XIX century when the rail network was build. The most common answer is that they thought larger locomotives would be required to climb the mountainous terrain in the Peninsula, which was not the case at all. Urban legends say that absolutely nobody in the committee that decided it had any idea about how trains work. Probably it was a protectionist measure to benefit local manufacturers.