These moves aren't forced but white makes them to try and save material and ends up losing the queen.
Very nice, tactics like these are game winners
3.Kd1 is ok for white (i.e. avoids losing a piece)
In truth this wasn't the actual game I moved one peice to make it a bit cleaner. the game actually went like this:
Again due to variations and it being so much cleaner I changed the real game by moving white's bishop for the puzzle.
These moves aren't forced but white makes them to try and save material and ends up losing the queen.