Why are Japanese trains so punctual?

Japan''s trains run like clockwork, on average Japanese high-speed trains are behind schedule only 30 seconds and if they leave early they even apologize. The punctuality goes beyond engineering, it''s also cultural.