Quite often when I see the person who is "technically correct" getting down voted heavily there's usually at least one of several other factors coming into play that would easily explain the down votes.
For instance they edited their comment to add something like "Edit: The down votes just prove I'm right", they're being uncivil or disproportionately aggressive, they're resorting to logical fallacies and arguing around the other people instead of debating with them, or they're just adding confrontational/controversial hot takes in a community that doesn't embrace that type of thing.
And honestly, you can be totally factually correct 100% of the time, but still be a drain on the community or take down the quality of a sub. If mostly all you are doing is punching down on ignorant people instead of building bridges and leading them to the factually correct conclusions, then you are probably a drain on the community and discussion. If you're basically doing nothing but feeding the trolls, then you're also helping to undermine the quality of the sub.