And yet they’re wildly successful, including the wide level of adoption of their open source projects like React.
Meta’s profit per employee is over $250,000, higher than Qualcomm. There is no Meta competitor in any of their verticals that has a larger customer base.
It seems to me that your definition of “software quality” and “lost cause” is factually wrong based on the metrics of success that matter.
And in any event, it is an engineer’s tunnel vision fallacy to believe that software quality is the most important factor to stakeholders. People will prefer buggy/slow software that solves their problem over fast/stable software that fails to solve their problem.