Ubiquity
Particularly with Wordpress and vBulletin, because they're sold as packaged software, if they had chosen a Microsoft-only software stack, they would have immediately restricted their possible audience to only those who are able to run Microsoft products. PHP and MySQL run everywhere, including on IIS. .NET does run on Linux (with mono) but until relatively recently, .NET on mono was rather painful, compared to PHP on IIS. SQL Server obviously only runs on Windows.
So if you're developing packaged software like vBulletin or Wordpress, it makes sense to use PHP+MySQL so that your possible audience is a large as possible, regardless of the relative merits of PHP/MySQL vs. .NET/SQL Server.
Facebook is different, because they don't sell a packaged version of their software, obviously. But others have, I believe, answered that question already.