The wish of a god, or even just the wish of a godlike entity, was not something that the universe could just leave unanswered.
So, when a being with the power to lay waste and create entire galaxies with just a snip of their hands had found themselves in the rather unfortunate siutation of having confessed something they were sure was unrequited, the universe listened.
Listened to a wannabe-god trying not to let it show how desperate and almost embarrassingly earnest he was.
And how everything inside of him begged and foolishly hoped that a french starship captain at the very least felt something similiar.
So, while wishes alone of mere mortal men can not even move a single corn of rice, reality itself can sometimes bend itself in order to please a Q.
Even if said Q is not (entirely) aware of it.