how is this a stalemate?

Sort:
duke04

Nytik

It is whites move, and he has nowhere to go (anywhere the king moves to would be check by the queen). Therefore, it is a draw.

These are simply the rules of chess!