Why are there so many different types of magma?

Why are there so many different types of magma?