Your due date is an estimate based on an average pregnancy being 280 days from the first day of the last period. This assumes that you ovulated on day 14, but many women ovulate later in their cycle than this. There also seems to be a difference in the average length of pregnancy between different racial groups.
Some babies also just take longer to be ready to be born than others. Nobody knows exactly what triggers labour, but it is thought that when the baby's lungs are fully mature a chemical is produced which triggers labour.