It’s an insurance thing. If they say no sunscreen they can’t then mix up sunscreens or sunscreen and something else and cause a reaction they would then be liable for.
I didn’t look into it but I imagine there’s language to make the parent responsible for indelibly labeling the sunscreen with name of student parent and contact info.