1)
Why did David compose this Mizmor?
1.
Radak (2): It is about Galus.
2.
Malbim: It is due to the Brachah of rain that Hashem gave after the famine of three years in the days of David, like it says in Shmuel II, 21:1.