How is this correct?

Rook is pinned by queen, and shouldnt be a viable option to protect the bishop

Rook is pinned by queen, and shouldnt be a viable option to protect the bishop