Why was castling here a blunder?

Sort: