I once had a dog that used to drink out of the humidifier all the time. Didn’t seem to hurt her.
A dog can drink ditch water you can see the squigly vermin in with no ill effects. If you do it you’ll likely be sorry.
It has to do with their elevated body temperature of 103 degress, IIRC.