When Taylor Hebert of Earth Bet triggered within the Locker, it drew the attentions of Discord. While unable to do anything directly to help/improve the situation on Earth Bet, he decides instead to give Taylor the gift of Equestrian magic, plus some helping hooves.
As Discord would say, let the chaos begin!
Story can also be found here: https://forums.spacebattles.com/threads/shard-of-magic-mlp-fim-worm.764257/