Initially it was for practical reasons.  Heels were added to shoes around the 1500s to keep horsemen's feet from slipping from the stirrups.\n\nEventually, it became fashionable to wear heels.
Why do shoes have heels?  Feet were designed flat...?