The length of a saxophone determines the lowest note it can play. The members of the saxophone family are spaced roughly half an octave apart (actually a fourth or a fifth). The lowest note on a soprano is a concert Ab, then Db for alto, and Ab for tenor, Db for baritone (or C for most modern baritones). This is similar to the spacings in the recorder family or the strings. I suspect the spacing originally comes from the spacing in human voices (soprano, alto, tenor, bass) - it is very easy to adapt vocal music for families of instruments that are spaced this way.
Music for saxophones is written in Bb and Eb, but this is purely a convention - in theory the music for soprano could be written in C, the alto in A, the tenor in G and the baritone in E. However, the system we have means that the fingering is the same for all the members of the saxophone family, so it is easy to switch from one to the other. This is in contrast to, for example, the recorder family, where the player has to learn different fingerings for descant (soprano), treble (alto) and bass.
It would have been quite possible for saxophone music to be written in C and F instead of Bb and Eb. But that's not what happened.
(Edit: I wrote some nonsense here that I have removed.)
Trumpet and French Horn players have to deal with scores in a variety of keys, and even with music that can vary in pitch during a single piece. For example our orchestra is playing Borodin's second symphony at the moment and the trumpet parts are written for trumpet in E for 2 movements and A for the other two. Our trumpeters have Bb trumpets, so the transposition is horrendous. The obvious solution is to re-write all the notes in Bb, which they have done. Modern horn players don't seem to re-write - they just grumble a lot. In the old days, the horn players would swap bits of tubing around to change key.