LOL stands for “laughing out loud.” It can mark a joke, show amusement, or soften a message that might sound blunt on its own.

“I brought the wrong bag again lol.”
In this example the sender is laughing at a small mistake. A short “lol” in response to a joke may just acknowledge it.