There are many factors that go into it, some of which are structural (when you're 51 yrs old earning < $1000 / month, no amount of saving is going to change your life significantly) and some psychological. (google search for poverty and impulse control pops out many results, including: https://newrepublic.com/article/89377/poverty-escape-psychol... )
As far as the dog goes, did you pay any attention to the woman's social interactions while you were judging her? This dog is probably the only unconditional affection she experiences in her life.