There was a time before the Internet existed, and people were able to write programs. They reviewed the documentation, digested and understood the system as a whole, then worked on problems using that knowledge. That’s still possible today. When you hit a wall, you read through some more, try some things, and sleep on it. Often you wake up with the answer.
Not everyone is only copy/pasting from SO/Google/AI to know how to build stuff.