well the only way I can explain is that back in older days, the good cop bad cop was a thing and they would beat and harass people into admitting a crime they didn't commit to save the time of going to court and searching the real guy. This was mostly so public police didn't take it upon themselves to "sentence" innocent people before the court had a say.