After President Garfield got capped by a disgruntled job-seeker, it seemed like a good idea.
There needs to be a balance between not allowing people to get fired to make room for cronies (White House Travel Office), but that allows for swiftly canning those who can't do the job.