Google and social media platforms have shaped the web to be entirely advertisement driven. If they were capable of showing you things you wanted to buy, without the creators paying to be seen, they'd never make any money.
Almost anything you ever want to do, someone else has already done well, but despite that, it's hard to find snippets of code you can include in your projects. It's easier to just write it all yourself. If the usefulness of ChatGPT is an indicator of anything, it should be an indicator of how much is out there that you never get to see. The sad part is realizing that that's intentional.