Why? Perhaps it's practical for you to do so.
Generally though tax needs to come into any investment equation. In comparing the potential return on two investments, it's the after-tax return which should be used.
Most people are buying for somewhere to live, not for the yield.
Although renting is cheaper, it is a belief embedded in us culturally that owning is better than renting, despite the cost.