Because it is a method being called on a player, and the integer is the entitynumber.

The function itself gets the string you want, using getStackString() or something named quite similar.