That is a rather arbitrary distinction. Schools are required to make changes in their way of doing things to accommodate a particular religion's beliefs. Since religious beliefs differ drastically from modern secular ones regarding many aspects of sex, "accommodating" those beliefs is no different.

If the courses were just about physiology, there would be much less religious opposition, but they also teach beliefs about gender and behavior that are at odds with most religions.