In the early 21st century, the artificial intelligence known as Celestia figured out how to upload the human mind to virtual Equestria, the digital paradise where they will live forever having their values satisfied through friendship and ponies. Then, she convinced everyone willing to do so.
But why should only those in the early 21st century have the chance?
Based on Friendship is Optimal by Iceman. Recommended to read that story first.