Why is promoting to Rook best?

I promoted this pawn to a queen before winning the game.

The chess.com engine thought it was better to promote to a rook? Anyone know why?

Cheers

I promoted this pawn to a queen before winning the game.

The chess.com engine thought it was better to promote to a rook? Anyone know why?

Cheers