why didn't they take the queen after Qf5?
because black did a blunder move and white can make it to stalemate
This is a draw due to insufficient material, not a stalemate.