In the U.S., we had this for about 50 years, but was mostly gone by the mid-1980's. It was part of a class called Home Economics.
In some schools it was mandatory for everyone. In other schools, it was for girls only because at the time it started, it was usual for women to do the household finances.
The course often also included things like cooking, cleaning, and sewing. What people today learn from online "life hacks."
I'm glad I learned all of those skills in high school. I only rarely need to darn my socks, but the knots I learned translate to fishing and other needs.
It was also where I learned typing.