Perhaps derived from Old Norse hamr "shape", and possibly originally a nickname for a person believed to be a shape changer.