They were and Germany was actually going in that direction, but it took the manufacturing scale of China to create an incentive to introduce the hundreds of minor changes necessary to get costs down.
germany stoped the investment and killed the solar industry. Not saying that China helped too, but we don't know if germany would have pushed through it without China.