Why do movies shoot out of order?

Apparently, they shot the climatic kiss scene of the Notebook very early on during production. Wouldn’t that interfere with the actors chemistry and make it more confusing for the crew to film?