I attacked a mammoth, then started running away, then cast muffle, then cast invisibility. Both the mammoth and the giant chased me wherever I went and the mammoth killed me. I had the same result with an invisibility potion instead of the spell.
Why? Can I become undetectable to them?