No, their freedom isn't paying for their room and board; they're loss of freedom is payment for their crime. Room, board, medical facilities, workout rooms, etc., those all cost extra.
Not all inmates are serving sentences for crimes. Some are there awaiting trial. I have a real problem with persons automatically thinking that all persons in jail are guilty.
And don't even get me started on the fine payoff.