if ad hominem attacks were of no value, humans wouldn't have evolved the strong tendency to engage in them.
they are not proofs in logic, hence the fallacy, but that does not mean they are irrational. it's irrational to think that human discourse can be capture by logic.
Isn’t rational a synonym for logical, though? People can subjectively rationalize their behavior, but that doesn’t make it objectively rational.