By walking up to you and putting his butt close to yours, he is not trying to be offensive. He is just doing what comes naturally to him. Since he can gain information from scent clues and his anatomy, he is very comfortable with exposing his rear to you and he assumes you are as well.