IMHO they see it as a power trip. They don’t know how to be productive in society, so they make themselves feel good by messing up other people’s day.
Miserable people are only happy when they make everyone else around them just as miserable.