How is Qe7 a better move


In this position, why is 7...Qe7 better than 7...Nf6? I have played multiple games where the "analysis" suggests Qe7 is a better move. I am looking to know why is this the case. Thanks

There is nothing wrong with Nf6, but Qe7! is far better, preventing Ne2 to move (pinned).
White is facing problems to castle, for example :
Final position is resignable for white.
U wrote e6 instead of e5 but easy to understand.
The thing to remember here is :
don't play automatic moves (like Nf6), try to create problems, especially when opponent develops in a strange way...