That is the beauty of how emotion has functioned throughout evolution: it allows the possibility of making living beings act smartly without having to think smartly.