Piece activity and coordination
Connect the rooks for a reason
Connect the rooks so each can support the other or use a file without a queen blocking the back rank.
Worked example
Position in text
White to move. White: pawn e3, pawn g2, rook a1, queen d1, rook f1, king g1. Black: rook a8, king g8, pawn g7.
FEN: r5k1/6p1/8/8/8/4P3/6P1/R2Q1RK1 w - - 0 1
Both Qe2 and Qc2 clear d1 and take the queen off the first rank. Qe2 additionally guards e3; Qc2 eyes h7. Pick the job you need, not just an empty square.
A plausible mistake
Moving Qd1 to another first-rank square can leave the rooks disconnected even though d1 has emptied.
Try it yourself
Position in text
White to move. White: pawn c3, pawn h2, rook a1, queen d1, rook f1, king g1. Black: rook a8, king g8, pawn h7.
FEN: r5k1/7p/8/8/8/2P5/7P/R2Q1RK1 w - - 0 1
Which queen move connects the rooks: Qd2 or Qc1?
Check your answer
Qd2 leaves the first rank clear between the rooks. Qc1 leaves the queen on their connecting line. From c1 the queen also occupies a likely rook square behind c3.