You feel bored when you are relying more on the external sources for joy in life. When you are putting the control of your life on the external factors then your excitement fluctuates with what you are consuming whether it is food or online content or news.
When you derive your motivation and energy internally from the things that you can have control over and that you love to work for then you not feel bored because you are less dependent on the external things that keeps changing and that are uncertain.
You feel bored when you are only depending on the things that gives instant satisfaction and immediate pleasure. You feel less bored if you enjoy the process of working on something that you love. You need to focus on the journey rather than the end goal to feel bored of the work that you are doing.
Do read the Disclaimer