This is what most people get wrong about home ownership. Mortgage and rent are two different, unrelated things.
Rent is part of the value of a property. If you live in it, you're essentially paying its opportunity cost. That in itself has nothing to do if you borrowed money against it or not.
The only way to not pay rent is to make someone else pay for you (eg live with someone else that doesn't charge you)