Right. BTW, in the US the police is also funded mostly locally, and the police chiefs are elected -- one result of that of course is the interesting security situation, where areas of high crime rates and areas of very low crime rates are separated by just a city street.
And it's not just communities have their police -- large private companies have theirs too, e.g. hospitals, universities, railroad companies, etc. (and those are police forces with power to arrest criminals, fine violators, etc etc, not some private security companies).