It's $999 but it has half the RAM and a quarter of the storage.
If you want to match those specs it jumps up to $1,649 which is $550 more than the HP.
Is the Mac better though? Of course it is, but not everyone needs the latest and greatest and not everyone needs to pay $550 more for it.