The police officers in your area work for the government. But they don’t work for the federal government.
That is also true of many teachers and university professors. It's also true of sanitation workers, firefighters, public defenders, park rangers, and others. These people work for state or city governments.