I am always shocked at how many people simply don't understand this.
For example: no matter how many index funds I buy, I will still have to find a landlord who allows pets in their home if the current landlord decides to kick me out for a better tenant (whatever that means for them).
I don't have to deal with that in my own home. My home, my rules. And this is worth more to me than knowing I optimized my investment portfolio.
Human dignity has value. Shelter security has value. Knowing that you won't be moving in the next few months has value. But the value of these things cannot be measured in dollars.