This view is just very extreme, it is much less zig zag. It is just mounted to the wall at the high points and slack in between. Certainly there is also a reason for the exact amount of slack like thermal expansion.
https://cdn.ca.emap.com/wp-content/uploads/sites/9/2018/04/l...