Why Lanthanide Contraction Occurs