Sometimes a bishop is more valuable than a rook. It all depends on the position:
Step by step: https://lichess.org/bkRksy5l/black