Why estimates are always too optimistic compared to the real time needed to finish a task

Do you recognise this kind of situation: “How long will this task take you?” “Oh just 5 minutes” and half an hour later, these 5 minutes are still not over. The small thing that would only take five minutes isn’t