I went through a lolrandom phase as a teen where I just said nonsensical or edgy things to try to get a laugh out of people. He probably just wants attention.
She's under no obligation to put up with it if it's annoying or gross, of course. Not getting the reaction you want is part of how you grow out of it and learn how to have a sincere conversation.