Why do dogs pee on tires?

I think they choose tires because the smart dogs told them there is little chance of electric shock.