Decades of underfunding and increasingly harsh sentencing means the prison population has been increasing, plus the population has been increasing.
There's no truth to the idea there's loads of spare capacity, you need a level of beds free at any time to avoid everything locking up, pun...