You know, when you pay rent you generally receive a place to sleep and keep your things. Just because you aren't making money on it as investment doesn't mean it's a loss.
You still got value in the form of shelter for your expenditure in the form of a mortgage just as you would have if you had paid rent.