Why was there rationing of things like sugar and shoes durin…

Why was there rationing of things like sugar and shoes during World War II when it’s been established that American production levels were sky-high during the conflict?   Surely a nation that could build thousands of airplanes could make enough shoes for everyone.  What did lectures say about this?