Heartbreaking details have been revealed in court after two young children who were accidentally left in hot cars by their unassuming parents died.