Why is it kind to say "ur welcome" if the other person says "thank u" before but rude if u say "ur welcome" but they don't say "thank u" before?

YOU ARE READING
ᴿᵃⁿᵈᵒᵐ ᵀʰᵒᵘᵍʰᵗˢ
RandomJust random thoughts that gather up when I can't sleep or am in the shower.
h0w U d0iN'
Why is it kind to say "ur welcome" if the other person says "thank u" before but rude if u say "ur welcome" but they don't say "thank u" before?