In a place where the path could go straight across a road, and curves have been added to the path on each side of the road,
It's to slow down cyclist before they get to the road. It is in fact traffic calming. It's done for cars in some places too.
The interwebz must have explanations and examples of this if you look. Ask a traffic engineer if possible.
If the curves are too much for you to handle at your speed, you are one that the curves were put there to slow down.
It's much better to keep your speed up on the road.