Most of the Bible is concerned with events. The Exodus. The conquest of Canaan. The rise and fall of kings. The life and death of Jesus. Something happens, and the community of faith tries to make meaning of it.
Wisdom literature is different. It is less concerned with what God has done in history and more concerned with what it means to live well in the world as it actually is.
The wisdom books (Job, Proverbs, Psalms, Ecclesiastes, and Song of Solomon) resist easy answers. They ask the slow, difficult questions. What is a good life? What does suffering mean? How do we hold joy and loss at the same time?
Ecclesiastes is unlike almost anything else in scripture. Honest to the point of discomfort, it names what most religious writing would rather avoid: that life is fleeting, outcomes are uncertain, and that this demands reckoning rather than explanation.