What is the deal with school

What is the deal with school? They make you learn unneeded information then send you out in the real world.For example in science the teacher makes you learn about the periodic table how helpful is this information,I know how to pump iron at gym, I like sodium with my french fries and how to inhale helium at a party and change the pitch of my voice.
Now let’s move on the subject of hw.Why should I do homework about something I already learned,I don’t that unneeded info.My brain needs to learn other things at home like video game controls,Wifi passwords,email passwords,and .That is what home is for,not homework.While we are on the subject of hw
Let’s move on to math the only thing I learned in math was what my favorite flavor of pi is 3.14.