SKCloudServiceController.requestAuthorization returns SKCloudServiceAuthorizationStatusRestricted for no reason

I have used

SKCloudServiceController.requestAuthorization
in my code and it returns
SKCloudServiceAuthorizationStatusRestricted
for some unknown reasons. I have read the documentation regarding
SKCloudServiceAuthorizationStatusRestricted
which states that restriction mode is returned in cases when device is in Education mode, but my device is not in education mode. Also, I found out that Screen Time feature added in iOS 12 also restricts access to Apple Music and I have verified this setting also and found that it's correct. The strange thing is that it's happening on 3 out of 10 devices. Any help would be great.