Imprisoned by mistake? You owe us room and board!

Okay, the logic of this escapes me.
The Labour Home Secretary of Great Britain is asking for the right to charge wrongly imprisoned people room and board for the time they spent in prison.
Yep, so not only were you imprisoned wrongfully, you get charged for it in the bargain!
Odious.
Worse, can’t you just see certain members of this Administration, or the administration of various states, thinking its a wonderful idea?