Sometimes exploring and diversifying your interests is helpful and productive similar to how you have mentioned the example of Claude Shannon. At times there is a connection between different fields which may not be apparent at the surface level but exists nonetheless. Even if it not something related directly to your academics, it still might be useful. Take psychology for example. It helps you deal with people and your own emotions better. Even practicing music for example has shown to increase your cognitive abilities. Writing is sort therapeutic too, journaling being prescribed for people with mental health issues even. Some of these interests aren't that easy to pick up, but if you can seamlessly take an interest in it, the same can expand your horizons. But make sure you have an inclination for it or you will just end up stressing yourself out more. It is a way to both explore and exploit your own interests.