It’s possible that he was repeating statements and behavior that he witnessed while growing up, but that is no excuse! One is responsible for their own actions. He probably never engaged his brain. Your post highlights a line from my article posted below:
Take care speaking to children, they might believe you.
Everyone should do this once they are an adult: