Since this is "D&D General" rather than any specific edition, this question is somewhat difficult to answer, but...well. The general understanding is that wish is the "Temporarily Become DM" spell, with the only consequences being whatever the DM can get away with inflicting upon the party without causing a riot. This is why it is both always, always, always the spell qualifying full-casters desperately reach for if there's even the slightest hope of hitting level 17...and why it's the spell every DM dreads having to adjudicate.
Because it's pretty much literally "there are no rules, the player makes up whatever they want to do, and the DM inflicts upon them whatever they want to do, good luck!" DM just no-sales it? They're a stuffy boor who poops on the players' creativity and fun. DM okays a massive effect but inflicts a terrible cost? Now they're not just shutting down creativity and fun, they're punishing it. DM okays it and doesn't inflict a severe penalty? Woohoo, we can do whatever we want, DM is a doormat (until they snap and become one of the previous two)!!!
It's pretty much the perfect storm of how to create a spell that is an almost guaranteed no-win scenario for the DM...and an absolute powder keg for the player. It may demolish any wall blocking your progress, or blow up in your face so spectacularly it's not even worth touching.