WiFi Client in Loop

Why is it necessary, or seems so, that a client instance is setup and removed on every loop iteration?

Please post the sketch that does this. Where did you get it from ?