Because the char are all represented by a number and ‘0’ is the first of them all.
On the table below you see that:
'0' => 48
'1' => 49
'9' => 57.
As a result: ('9' – '0') = (57 − 48) = 9

Source: http://www.asciitable.com
Because the char are all represented by a number and ‘0’ is the first of them all.
On the table below you see that:
'0' => 48
'1' => 49
'9' => 57.
As a result: ('9' – '0') = (57 − 48) = 9

Source: http://www.asciitable.com