Why are there so many different types of law-enforcement agencies in the United States?

Why are there so many different types of law-enforcement agencies in the United States? What problems, if any, do you think are created by such a diversity of agencies