Thoughts exist because the Sansar looks meaningful to you, and the meaning is only a projection of your vasanas ( desires ).
A woman appears beautiful only to the person who desires her beauty.
The same woman will seem different to her parents, siblings, or children.
Seeing her, a desirer will feel restless, but others will be filled with love, affection, and contentment.
The state of a restless mind will be different from that of a loving mind.
The same is true for all objects of pleasure.
If you desire money, a rich person will be meaningful to you.
One who is content with what he has is a rich person; that rich person would be meaningless.
Thoughts keep rising due to our projections onto the Sansar.
The only solution to all desires is to find the shunya state within, which brings sukha (contentment).
नास्ति बुद्धिरयुक्तस्य न चायुक्तस्य भावना |
न चाभावयत: शान्तिरशान्तस्य कुत: सुखम् || 66||
nāsti buddhir-ayuktasya na chāyuktasya bhāvanā
na chābhāvayataḥ śhāntir aśhāntasya kutaḥ sukham
BG 2:66
One who is not connected ( with self ) ( ayuktasya ) cannot develop buddhi ( wisdom ).
He cannot meditate ( Bhavna) either.
Without meditation, there is no shanti (inner peace).
And
Without inner peace, there is no sukha (contentment).