Why Does Ecclesiastes Conclude, “All Is Vanity” (Ecclesiastes 12:8)?

Ecclesiastes ends “all is vanity” to expose life pursued apart from Jehovah and to drive us to fear Him and obey His commandments.