Why is the freezer compartment located at the top of a refrigerator?

It is not always at the top as its a refrigerator so it can cool any compartments it contains it contains due to its special mecanism