Did you get that maths book as a Christmas present? 
Anyway, the book is right. Just think about it.
0² = 0³, because they both equal 0, but 2 ≠ 3.
Similarly, 1² = 1³, because they both equal one, but 2 ≠ 3.
A more mathematical approach would be to try to solve an equation like that.
1^x = 1^y.
This means that x = log y ÷ log 1
But, as log 1 = 0, then you can't divide by it.
If you try to do a similar thing with a = 0, you hit the problem that log 0 is undefined.
Happy Christmas!
,--.
() / `\
/ \
_ /______\_
(__________)
(/ @ @ \)
(`._,()._,' )
( `-'`-' )
\ /
\,,,,,,/