Bad advice?

I was wondering why so many peoples first advice for any situation is "just leave him"? Aside from the obvious deal breakers like abuse/cheating, i feel like unfortunately that is what many people see as the answer to solve all their problems.  What happened to working on your relationship, communication, etc?! Also think of your children & how leaving will affect them now/in the future. 
Again this is not meant for people who have been thru ANY kind of abuse or situations where it is for the safety of your family. Im talking about the ones who are like "my husband doesnt help enough, im angry about something, my husband works too much, etc." & their first thought is to leave. Maybe im just naive & old fashioned lol but i was wondering if there is any other "behind the scenes" reasons why so many peoples first thought is to leave?