Studies have shown that when you allow your thoughts to drift aimlessly you activate a creativity app in your mind.
Creativity helps us in many ways. It's not just about artistic creativity. It's also about resting. Have you ever lost something and searched high and low for it, ending up frustrated because you couldn't find it? Then you turn to another task and forget about it for a while, and all of a sudden the location of your lost item "magically" appears in your mind.
Spending time with your head in the clouds, at rest, is like that. Let it rest and roam, and do this on a regular basis, and suddenly a "magical" solution to something you've been pondering will appear.