XMP is a feature that automatically correctly overclocks RAM to run at a higher speed.
It will configure all the parameters to the correct frequencies, voltages, etc. That is why XMP has more than one "Profile" because each profiles is unique to the speed it is to configure.
This quote from a tech site concerning XMP:
Short for Extreme Memory Profiles, XMP defines a set of configurations embedded into the RAM SPD in addition to the standardized profiles approved by the JEDEC. These profiles define the RAM's voltage, frequency, and CAS latency so that it can run at faster clock speeds compared to the standardized frequencies.Sep 18, 2022