4 digits 7s display + 74HC595

What for?
If I do that I would be lightning always the same digit, and showing the same number.

I really don't understand this.

You have a for loop that iterates 4 times. On each pass through the loop, you execute one of the 4 statements. On the first pass, you execute the first one. On the second pass, you execute the 2nd one. On the 3rd pass, you execute the 3rd one, and on the 4th pass, you execute the 4th one.

How does that differ from getting rid of the loop, and just executing the 1st statement, the 2nd statement, the 3rd statement, and then the 4th statement?