Clearly Allah says that He is the one who causes rain. But science gives explanations on how and in what process the rain or the weather develops. Therefore, they give credit to nature itself. That’s understandable as they are the people who do not believe in a creator.
Then there are people who believe in a creator, who worship the creator along with other Ilaha (God) and they also give credit to nature itself for causing the weather, that’s also understandable as they don’t have the proper and certain knowledge of their creator.
But then there are people who call themselves Muslim, they have certain knowledge from their creator, Allah, from their book, Quran, as to how He causes rain to come down. But unfortunately many of them give the credit to nature like those of atheists and kafirs. Inna Lillahi Wa Inna Ilaihi Rajeun.