Silicon and Aluminium need lots of electricity. Nice graph showing about 2/3 of solar cell embodied energy inputs is electricity: https://ars.els-cdn.com/content/image/1-s2.0-S09270248210032... from https://www.sciencedirect.com/science/article/abs/pii/S09270...
Presumably China uses coal because it is most economical for them in the short term (not so good for the world!)