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, many university professors, park rangers, and others. These workers are employed by state or city government.