You know this is so wrong in so many ways, and you know it too. I think you need to seek help, before it gets really worse. It seems like your brain has become used to this pattern of behaviour, in order to avoid something more painful, such as emotional trauma. Please seek help.