Why does this LED matrix have two 5V and GND pins?

They could be. All matrices are connected, at the end of the day, to a strip of one kind or the other.

Like this:-

1 Like