what was the purpose behind the civil service reform?

what was the purpose behind the civil service reform?