How did society explain the diversity of life before the theory of evolution was developed?
Typically it was religion that explained all of that. For example, the Tower of Babel is a very popular explanation for diversity.
They said God created everything
Magic. Everything was explained by saying "god did it, don't ask questions or we'll kill you." Some ignorant people still believe this is a valid answer.