What are the evolution requirements?

What makes it so an animal turns humanoid? Sometimes it just gets smarter from the monolith and never evolves. Do they need a certain number of mutations or something? I can't figure it out.