(a) The weight of a passing wheel is passed down the web to the foot and then to the sleeper. A wide foot spreads this force over a large area of the sleeper, so the compressive stress (force per unit area) on the sleeper is kept small, and the sleeper is not crushed or dented.
(b) A tall, thin rail standing on a narrow base would easily tip over or buckle sideways: wheels push on the rail sideways as well as down, especially on curves, and a narrow base gives almost no resistance to turning over. The wide foot gives the rail a broad, stable base (and room for it to be clamped to the sleeper), so it stays upright under the sideways as well as the downward wheel loads.