They hire their own people in the top jobs, the ones that require Congressional approval. But they generally leave the existing civil service in place.
That balances the administration's priorities with the experience of people who have spent a lifetime in the job. It is not the case that each administration roots out vast numbers of political opponents from the departments.
Biden hired people with ties to people in his circle. Trump does the same. That is not, in and of itself, nefarious—in private companies it's widely understood that hiring through your network is the most reliable way to hire.
There may be other reasons why these particular cases are nefarious, but simply pointing out "ties to" does not show that by itself.
Because each administration hires their own people.