Informatics........ What science is required to build the items you are working with in informatics? Chemistry....
History, although, while in school I didn't see much sense behind it either.... The decades after taught me different.
Religion isn't mandatory, neither is Music. Some school systems change music to arts later down the road, like you said around 8th grade actually.
School is, and even if some fail to grasp it, a preparation for ones life down the road.
Now, by nature, everyone starts in school as a kid, and becomes a teenager while there. At that stage of ones life, it is impossible to make assumptions as to what a person will need one time, and what not. So the education has to be broad.
Hence why there's heavy emphasis on the mandatory fields: <Native Language>, Math, History, Physics, Chemistry, Geography.
That's rounded up with secondary fields like: Sports, Secondary Language, Religion, Music & Arts, and usually for boys crafting, and for girls housework/cooking.
You are getting prepared on a broad spectrum, which gives you a choice down the road to go in pretty much every direction you choose to go.