When a person desires things that are opposed to Hashem, sighing comes to him through this.
Sefer HaMidos, Depression, Part I §29