They were able to predict eclipses. But you're spoiling the fun with facts.
Watch the film again, and assume the high priest and king knew what was going to happen. Made perfect sense to me.