Also, Wikipedia is able to make so much money from just donations because their target audience is "literally everyone."
MDN has a smaller set of users, and the thing with running websites with user-generated content is that it scales up pretty well. MDN probably only costs about a tenth as much as Wikipedia to run, but has much, must less than a tenth as many users.