Why does my boyfriend always make little sarcastic comments all the time?

I’ve dated my boyfriend for just over a year and we get on really well but when we hang out he had this habit of making snide sarcastic comments.
like if something happens like a mother is yelling at her child he will say something like ‘haha that will be you one day’ etc. but then says he’s ‘joking’.
I’ve been laughing them off but recently I’ve got more annoyed by then and I’m starting to answer him back because it’s not nice.
Weve spoken about things in the past, and he says it’s how he is and he’s always just joking but I think it’s more like he’s passive aggressive, or might even have something like mild Aspergers because he can’t seem to stop himself from saying what comes into his head- I’m his first long term girlfriend so he isn’t that great with relationship stuff but still- any help?
Why does my boyfriend always make little sarcastic comments all the time?
Post Opinion