It's common to say "the thought came to mind"...
Most of our days, moment to moment, thoughts of all types come and go, arising without any apparent rhyme or reason.
If we pause to take a look, we find these thoughts painting a mental landscape, which color how we perceive and then interact with the world.
When we practice loving kindness meditation, rather than being at the whim of the mind, we direct it, cultivating kind and compassionate thoughts, altering the mental landscape.
Painting with beautiful thoughts we paint a beautiful mind.