The difference in "size" comes from the fact that manufacturers don't use a standardized method of determining "size". While they pretty much all start at the center of the bottom bracket, some measure to the center of the top tube, some measure to the top of the top tube and some measure to the top of the seat tube. Never use the "size" of a bike to determine what size you need.