This can happen if your coconut milk contains stabilizers, which prevent coconut milk from separating. The second reason could be that you have shaken with the can prior to opening it.