I think at least some engineers genuinely believe they're doing what's best for the users and that it just so happens to also be either the best for their personal bottom line or the easiest route to go with their product.
Also, company cultures get trimmed towards it. "Googlers" are one example. I don't think employees call themselves Facebookers, since that sounds like client for prostitution, but they probably have something else.
It's possible some really drink the kool-aid, but most are just compensated too well to care. The only companies that will try to compete with Facebook on pay are financial institutions like Citadel.