Horses evolved from dog size relatives about 55 thousand years ago.
Their brains did not change much from the brain of the dog sized relative until modern day horses. However,the modern day horse brain is not nearly as complex as the human brain.
Horses once had lots of predators. However over time they have dwindled. The horses still have the hard-wired flight or fight response that came from having so many predators.