It's literally lower risk to invest if your average investment return rate is lower than your mortgage rate. It's likely more of a psychological opposition, where people want to feel more secure with a fully paid off mortgage, even if it does lose them potentially millions in the course of their lifetime.