I could be wrong but I think it is because synapse pipelines aren't directly supported as a task in devops pipelines so someone has used this as a workaround?
Your script just allows you to invoke a synapse pipeline with parameters and waits for it to complete.
There are some good posts (maybe getting a bit old now) on CI/CD for Synapse
https://techcommunity.microsoft.com/t5/data-architecture-blog/ci-cd-in-azure-synapse-analytics-part-1/ba-p/1964172
Hope this helps