The devil you say! He inherited the title "Duke of Normandy" from his dad Robert the Devil in 1035
When Robert II, Duke of 
Normandy died in 1035 his illegitimate son William inherited his father's title.