Why do people have baby teeth and adult teeth?

Why do people have baby teeth and adult teeth?