If I took money from my 401k for catholic school tuition, why do i have to pay a penalty?

My 401k plan only allows for certain circumstances and school tuition was one of the options. So why do I have to pay a penalty on the withdrawl