Facebook wasn't first and had all the momentum. MySpace sold for $580M in 2005 and I'm sure Zuckerberg would have seen that as relevant to Facebook's potential value.
To answer your question as to why, Facebook is an advertising company. People pay to publish ads, they pay more for highly targeted ads which is what Facebook offers.
To answer your question as to why, Facebook is an advertising company. People pay to publish ads, they pay more for highly targeted ads which is what Facebook offers.