A megabyte (MB) is smaller than a gigabyte (GB). It takes 1,024 megabytes to make one gigabyte, so a 500 GB drive holds roughly 512,000 MB.
In practical terms, more gigabytes means more room for photos, games and video, which is why storage is usually advertised in GB. Drives have since moved on to terabytes (TB), where 1 TB equals 1,024 GB, and larger capacities keep climbing.