Cream from the milk is separated by centrifugation because:
the cream is lighter than milk and comes over it
Centrifugation works on the principle of density difference.
The cream has lower density compared to milk. Hence, it can be separated from milk due to centrifugal force. When the mixture is spun rapidly, the denser particles are forced to the bottom and the lighter particles stay on top. This way, cream can be collected in a seperate vessel.