If it’s the same criminals committing the same crime shortly after being released, keeping them in jail will reduce the opportunity they have to commit the crime again, at least for as long as they remain in jail.
If you have to wait 7 days between train robberies instead of 24 hours, that’s a big hit to the business model. Maybe enough to make it impractical.