Because adding 10 4's together makes 40.
That is, because 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 = 40.