CP acts basically as a shield in fights.
When you take damage your CP will decrease first before your HP is affected.
HP has also a significant role in the damage calculation.