The headline penalty amounts were inflated with bogus dollars that the banks never actually paid.
A great example was Bank of America's purported $17 billion settlement.
https://www.justice.gov/opa/pr/bank-america-pay-1665-billion...
This was really $7 billion in actual cash, plus double-counting $3 billion of pre-existing penalties that BofA hadn't paid yet, and then juiced further with totally bogus $7 billion in "homeowner relief".
That "homeowner relief" consisted of adding up "principal reductions" on bad debt that the bank had already suffered because they made bad loans, plus "new loans to credit worthy borrowers".
Like when there's a class action lawsuit for criminal corporate behavior and the "settlement" is a coupon for 20% off more purchases from the company.
The details aren't out on the Facebook settlement, but if the bank penalties are any guide, the cash actually paid could be a fraction of the $5 billion headline number.
People conceptualize Facebook as a single entity pursuing a single goal, and that's understandable given the company's management structure. Nonetheless, it is not that; it is a collection of organizations and product teams with differing incentive structures. The consent decree targeted specific operations in Facebook, not the company as a whole --- and those operations were idiosyncratic and outside the main flow of revenue to the company, to begin with. A business unit that makes $50MM and nets -$4.95B is one not long for this world.
And, once again, you can't know how the market priced the fine, because it was priced in long ago, and you don't have a counterfactual price-without-fine to compare it to.