I believe the distinction you’re looking for is Civil Service vs Appointed positions. The Civil Service is composed of employees who are hired and managed competitively (to the extent allowable by the unions and massive red tape...). Appointed positions are executive roles filled by the whim of the president, or the whim of someone the president delegates to. The most powerful appointed positions require Senate confirmation.
Government is inherently political.