I have heard that dogs are excellent judges of character. Perhaps you are not such a nice person. Could it be true?
I’ve got moments where I am not so proud of myself.
No more than I do my friend.
Having had dogs my entire life I believe they sense if someone is not a “dog person” IOW not fond of the creatures and perhaps a bit uncomfortable around them.
They will pick up on that (scent) and can become either fearful or turn aggressive. Aggression and fear are two sides of the same coin in dogs and some people as well.