Many dogs have an aversion to tails being touched because many times as puppies, their tails were pulled.
It probably hurt but they were too little to do anything about it.
Many people don't respect dogs or their feelings and as a result would ignore any signs of discomfort associated with tail contact.