How do you develop a sense of humor?

I’m not sure to be honest. I remember being a really soft kid growing up and my older brother loved giving me shit, every time I’d go crying to mum over the tiniest thing. I’m not sure when it changed but at some point as I got older I learned to laugh at it, laugh at myself and give shit back

Funnily enough my sense of humour is usually what people say is best trait