How on earth could you possibly know that? It's entirely possible (likely) that not laying off those 3000 people would endanger the ability of Tesla to continue employing the other 30,000 people. Life (and business) is sometimes messy...
If the markets were assuming that they would recover half of what was owed in bankruptcy, that corresponds to about 1/4 odds of bankruptcy in the next few years. Given that historically markets have been more accurate than any individual commenter, the risk of bankruptcy was quite real. No matter how many Monday morning quarterbacks like you think otherwise.
The snark in this thread is unbelievable.
Equity prices give you a share in future success. They therefore predict expected future value, pro-rated by the odds of getting there.
Bonds give you back money if the company remains in business, and nothing more. Therefore they represent a prediction of odds of going out of business, with no regard to how wonderful the possible upside in the company might be.
Tesla's combination of high equity value and low bond value represents a company that has a real chance of becoming dominant in its sector, and also a good chance of cratering instead. You shouldn't invest in a company like that unless you understand why there is a real risk, and are willing to take it.