The number pertains to the number of beef patties served. A hamburger counts as one patty. A Big Mac counts as two. A quarter-pounder with cheese counts as one. A double cheeseburger counts as two. Got it? The pratice undoubtedly started when McDonald's served nother sandwiches besides (single-patty) hamburgers and cheeseburgers.
http://www.aboutmcdonalds.com/mcd