Why is the ice box in the refrigerator at the top?

This is a throwback from earlier times, when ice boxes were literally boxes which held ice. The cold air would fall, and cool the food below. Cool air does not rise, which is why the ice box was not below the food.

In modern refrigerators, this is no longer an issue, and many manufacturers are now putting the freezer section at the bottom, rather than the top.