Not connected with 'hag' of course, although a hag might be unholy!

HAG:

NOUN: 1. An old woman considered ugly or frightful. 2a. A witch; a sorceress. b. Obsolete A female demon. 3. A hagfish.

ETYMOLOGY: Middle English hagge, perhaps short for Old English hægtesse, witch.


(from AHD)