Yes, this is rude/crude behavior. But it is also most likely a symptom of your own lack of emotional and social self-awareness. These might be good things to work on in therapy.
You asked "how can I not be unintentionally rude?" Well, I would start by bringing this issue up in therapy and letting your therapist know you want to increase your self-awareness skills.