There are many patents on solar panel tech. That is not patenting the sun, any more than some EV motor patent is “patenting roads”.