The boat was made to carry the spirit of Khephren into the Other World after his death.
The boat was constructed in order to bring Khephren's spirit to the Other World after he died.