How come some cities have a ton of cops and others dont?

I work in various neighborhoods/cities. One particular city I noticed the cops don't patrol. They'll come out if you call them, but they go right back to the police station. I was working in another neighborhood and saw a cop for the first time in like 4 years and even that time he was driving like he had somewhere to go, so not actually patrolling the neighborhood. Then you can go to another city and you'll have both city and county cops around like mosquitos after a rain storm. Is it just a budget thing?

How come some cities have a ton of cops and others dont?
Post Opinion