They spent time flying for low cost carriers or they fly a230/737 for that carrier then move on to the widebody. If you parents are wealthy and got your license at say 20 you could easily be on a 777/a340/747 by the time you were 30.
Don't forget some guys are lucky and go through the ranks quickly for whatever reason.