What is a loop?

Hi!
what’s a loop? i very often get this warning when trying to create a sweep…

You need one closed boundary line. The pink line on top is continuing beyond the shape in both directions