It is described as anecdote. Anecdote is a brief, revealing account of a person or an incident, normally they differ from jokes because their primary purpose is to reveal a truth and not simply to provoke laughter. It serves to make listeners laugh or ponder over a given topic, it relates to the subject matter being discussed by a group of people.