You can use a rent vs buy calculator to do the math for your situation:
https://www.nytimes.com/interactive/2024/upshot/buy-rent-cal...
The parent is minimizing a bunch of coats of owning: maintenance, property tax, included utilities, HOAs, and most importantly opportunity cost.