A lot of Tesla's cash goes toward covering Elon's mistakes, like: the unused billion-dollar-plus "alien dreadnought" manufacturing line gathering dust, the SEC settlements, spending on SolarCity and BoringCo, Elon's hundreds of flights each year, purchasing hundreds of auto trailers for deliveries because Elon goofed on the logistics schedule, last-minute storage in port because Elon goofed on the basic paperwork, parking lots near their factory to storage unsold cars or cars awaiting replacement parts, shrinkage due to repairing/replacing parts on the factory line because they were broken or improperly installed the first time around because Elon doesn't believe in letting employees having time to do things properly.
Very little of their cash actually goes to expansion of manufacturing.