Deepseek can raise money in part because people expect it can make money from closed sourced models later. If there is a law passed that every company must open source everything the expected future profits decrease and deepseek would be able to raise less money.
Linux raises money that’s true, byt over its total 35 year lifetime maybe $10-50 billion has been invested in the Linux kernel, in the past two years alone AI companies have raised like $700B
The problems that Linux can potentially solve are tiny compared to the problems that AI can potentially solve. The invested amounts reflect this.