Well... before humanity's time ran out, and before the mass exodus begun, Harmony was discovered. A new, uninhabited planet that humans could move into en masse, without displacing any ponies. And, what's more, it had magic so ponies could live there too. And there was Ascent, so humans could become ponies, and ponies could become human. For absolutely no reason, really. 