Police and prisons have only ever existed to protect property. Before Europe started enclosing the commons (and deprived our ancestors to the means of subsistence) in the 16th century, there was no need for police or prisons.