why is anything to the zero power equal to 1?

Because 1 = a^x/a^x = a^(x-x) = a^0,

no matter what a or x is.