The original idea was that a foot soldier that advanced all the way through the enemy lines was promoted to the lowest rank of officer.
At different times, the pawn could only promote to the piece of the file on which it promoted, or on which it started (a queen if on the king's file).