Boredom has a purpose - it signals that you are searching for new goals
Boredom is an emotion which signals that your current goals are not getting your motivational juices flowing. We become sated with anything that is repeated again and again and our brains are novelty-hungry. Eat your favorite food a few times in a row and you will become bored with it. The thrill of that new car soon fades and romantic relationships have to settle into a slow thrum of everyday contentment after the thrilling passions of the initial romance.