Apple did not create this. It originates in the "Workflow Gallery", which Apple rebranded when taking over the service.
I think the question is: Are these downloadable workflows an integral part of the Apple software or are they just merely "Sample Code"? In this case the gallery is curated only by Apple (I think), but if we go down this path, what prevents DCMA takedown requests for GitHub repos that contain sample code which accesses services like this?