Hot take: gym class is about enforcing power dynamics.
If it had anything to do with teaching health skills, it wouldn't focus almost exclusively on dangerous team sports that require 20 dudes, expensive equipment, and a field.
It would be line dancing. And yoga. Aerobics. Nutrition.