Why should the algorithm of power be specified (m, n are positive integers)

Why should the algorithm of power be specified (m, n are positive integers)

You just started, so start with positive integers
In fact, later you will know that it's OK not to be a positive integer