Why do US Marshals have higher qualifications but lower pay?

The average salary of a Police Officer in the US is higher than the average salary of a US marshal working for the federal government but they require much higher qualifications and training than a cop. Why be a US Marshal over a Policeman?
3 answers 3