A long time ago there was a unicorn so powerful that she could fulfill wishes. Of course this is just a legend but the legend also says that this unicorn bundled her magic in an amulet and now this amulet appeared in Ponyville.
Without thinking about the consequences Rainbow Dash uses the amulet. At the beginning everything works great but then Rainbow accidentally says something she will regret later.