Why does 5 x 8 = 40?

Because adding 5 8's together makes 40.

That is, because 8 + 8 + 8 + 8 + 8 = 40.