These kinds of thoughts are known as 'shower thoughts', because the shower is one of the places where people come up with them. These small yet deep thoughts are like miniature epiphanies.