Daydreaming can be seen as different thought process. Although a person can appear inattentive, absent minded, uninterested, disobedient, a person can be actually very focused. However, not on the subject that is expected. What happens is that emotions can have such a strong impact on thoughts that everything else becomes irrelevant and the person becomes out of the tune with environment. Person gets immersed into their own strong and often crystal clear thoughts. That can lead to hyper-focus that allows person to search for ideas and solutions for a problem independently of the surroundings.
Also, in daydreaming mode ideas can appear out of nowhere, when least expected. When a person daydreams, thoughts are led by person's subconscious. Subconscious is infinite, where thoughts become unorganized, scattered. In such a relaxed but active state of mind, individual becomes more open to new ideas. Thus, reaching creative and uncommon solutions.
Daydreaming can be extremely productive and fruitful and mistakes are often made when attempting to remove child's inattentiveness, thus removing his uniqueness and imagination.