Being an inmate doesn’t mean you lose your ability to consent. They could have very well been in a relationship. Just because it was against the prison rules does not mean it was non consensual.
You are the only one calling it rape - there is nothing else implying it was non consensual.