CP is caused by damage to the part of the brain that controls muscles. Sometimes other parts of the baby's brain are also damaged.