In these discussions, there's always an implicit assumption of certain intentions being the "real" ones. Statements like "police were created to..." first imply that there was a creator whose intentions define the police through incarnations, a kind of "god of police," and, more likely, if it was not a single individual, it is a "pantheon of police" composed of its creators and sustainers. And then we have the image of the state as a composite entity which exerts control over the pantheon without being corporeal itself, maybe as the composite will of a class of people.
To me, this idea of the personification of state power into an all-powerful driving force seems more mythological than the importance of individual decisions being made by those who carry out the work of the state. An individual officer may have a similar belief in the intentions of the state, but their actions are ultimately their own.
It seems ironic that the more we tend to be critical of state power, the more we tend to mythologize it into a kind of personification. You might not fall into this trap, but many do. But why should the intentions of the composite pseudo-entity matter more than the intentions of the real individuals who carry out the work? Isn't each police officer a person who has different goals and ideas about who they are and who they serve? Is this really so insignificant, or is it so overwhelmed by institutional goals that it becomes irellevant? Or could the real people and not their abstractions be the real bedrock of civilization?