That will have been set very early in your childhood and you will have been offered an alternative when very little (probably very sugary back then) which you feel preferred. After that water didn’t taste so good and gagging got the response from your primary caregiver that you required.
This in built dislike of water has continued and subconsciously passed to your child as so so many likes and dislikes / character traits do between parent and child.
I don't like water, never did, despite sugary drinks being kept to a minimum when I was a child. It's worse since having DS - had horrendous sickness while pregnant and the tiniest sip of water meant instant vomiting, then being in hospital for two weeks after the birth, having to take a lot of medication, usually with water which meant a lot of gagging.
DS rarely drinks anything but water. We're waiting for assessment for ASD, and he's limited in what food and drink he'll have. His diet at the moment is essentially cheese (gouda only), ham, chicken, bread (preferably tiger bread, nothing brown, with seeds etc.), weetabix, apples, carrots, bananas, and the water. None of that is anything to do with me or my habits.
Not everything is down to bad parenting or subconscious passing on of traits.