Originally from descriptions of Daoist sorcerers and immortals who could literally control weather. In
《西游记》 (Journey to the West), many demons have this ability. Now it's purely metaphorical - a tech CEO who
呼风唤雨 is just very influential, not actually making it rain.