Because (some) investors with money still believe that this overspending (tbd.) on R&D is gonna pay off in the form of market share (or the generosity of our future AI overlords ;), and (some) dumb money is just following it.
"Correct" investment volume towards early industrialization might have looked just as unreasonable without the benefit of hindsight.