What is the function of rope in the swimming pool?

What is the function of rope in the swimming pool?

Floating Pool Safety Rope A rope is often used in commercial pools to section off lanes for swimmers or to section off the deep end to prevent children from venturing too far beyond shallow areas where they aren't skilled enough to swim.