I think because "Way back in the day" the planes used to do long range NAV with sextents, so the Navigator needed a window that faced the stars. The 727 and the 737 are based on the 707 which is from that time. The DC-9 also has the windows on top, as I guess the DC-8 does too.