I wonder this quite often too. It would be interesting to see a study involving programmers and their confidence in their skills compared to what other people think and also how much they read about programming online.
My gut instinct is to say that because we want to read a lot of new/interesting stuff online, we're exposed to (seemingly) tons of people who know TONS of things that we don't know in the aggregate, so it affects our self esteem...