Hitler simply took over, and adjusted for his purposes, a large German state that already had control over its people - an old-age pension system, a highly centralized public education system, an economic planning apparatus, etc...
Our education system is still based on the Prussian education system.