Why is he like this?

I have a fuck buddy (going on for 9 months) that gets jealous sometimes and other times he acts like he doesn’t care