A cement mix become like a stone due to chemical reaction. This reaction produces heat. Water curing helps the process to happen in the correct temperature.
https://happho.com/concrete-curing-duration-right-time-various-methods/
https://www.thehindu.com/features/homes-and-gardens/proper-curing-increases-the-life-span-of-a-building/article3747192.ece