Why do we see so many variants in covid?

Variants of covid have developed in various places all over the world. Why did they start showing up? And what does it mean for the pandemic?