The American civil service was designed this way
Unlike the system that developed in the UK of an impartial civil service that remained in their posts under any government, the US approach always saw civil servants leave their posts when an administration changed