The police in your community are government workers, but they don’t work for the federal government.
The same is true of teachers, sanitation workers, firefighters, public defenders, park rangers, and others. It’s even true of many university professors. These workers are employed by state or city government.