I doubt that's just "don't mention a competitor" (though that was likely a factor too). Saying "two" is an important point to emphasize: if this was a national law written to target just two companies, saying so makes the sentiment clear. And on top of that, I have the impression that Meta/Facebook has much lower public approval than Google.