It's a universal writing trope that a protagonist's rival must always be powerful or otherwise capable enough to be a plausible threat.

And since Trixie is the closest thing Twilight has to a rival...