Can you see how this diagram can help to explain what is going on?
8 Triangular numbers making a square