The “good attitude” line is a form of toxic positivity, actually. Getting evicted sucks and it’s perfectly rational to be upset about it. What matters is how you move on from it, and you did and it sounds like your life is much better now.
I make sure to never repeat this crap to other people.
In hindsight the eviction did get me out of a very bad home life, still was a solid year of hell