Radiators are traditionally placed under windows due to that tending to be the coldest part of the room. It all relates to heat conduction, which is explained in greater detail in our full guide on where to position a radiator.
Furthermore, the space beneath a window will usually be plain, and not populated with any other form of décor or fittings, making it an ideal location for a radiator.