The reason for diversity in living organisms is due to long-term evolutionary changes.
Evolution is a slow process of gradual change occuring in organisms leading to the formation of new species. Organisms living in different environments would adapt and slowly change over time. This ultimately leads to the formation of new species. When this happens continously, large number of species are formed, leading to diversity in organisms that we see today.