I think here in my state it's age 7. So no, K is not compulsory. A lot of districts offer half-day K, and others offer full-day K, and some give parents an option, charging them a fee to enroll full day rather than part day.