Boyfriend masterbating

So I caught my boyfriend masterbating in our bathroom and it was a complete turn off. I don’t understand why he couldn’t just ask me if I wanted sex.

Is this normal for guys to still do this in a relationship?