When you are sleeping, you consolidate memories of the day. When you take a break, you recover energy for the next unit of work. When you don't push your mind to look outside, it has a chance to look inside.
Dismissing boredom as symptom of a lack of inspiration is shortsighted. Boredom can be part of a pretty creative and productive cycle, too. But it is everyone's choice whether to participate in such a cycle.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.