The blood collects under the periosteum. The periosteum is fixed at the sutures, so the swelling stops there.
A cephalohaematoma is a subperiosteal haemorrhage, between the skull and periosteum. It appears several hours after birth, most often over the parietal bone. It does not cross suture lines, because the periosteum is bound at the sutures. Breakdown of the pooled blood can cause jaundice. It can take up to 3 months to resolve.