Sometimes, people are moody. And while being irrational at times isn't typically the smartest idea, it may help us adapt quickly to new changes, according to a new study.