Even though there are 64 squares and only 32 pieces, those squares can run out and your pieces can be left out without legal moves and getting trapped. It is a frustrating situation when you can't save a piece from being taken because you didn't foresee it would get trapped a few moves before.
Sometimes, even with a pawn move, you can take away your opponent's safe squares. Even queens are vulnerable to be trapped because any trade for a lesser piece is dangerous.
The Queen is such a powerful piece and it controls so many squares, it is hard to believe it can be trapped, but with the correct tactics and a positive position, every piece is trappable.
Positions like this are often found, when one side overextends a piece and with simple forward moves you can corner a piece. In this scenario Black's queen is all by itself on the edge of the board. Can you find a way to trap it?
By forking the Queen and Knight, and at the same time pinning the king to the knight, white has made a great move. And now the Queen is trapped.