In typical usage on a circuit board the resistors would be physically located at the top of the columns and connected to the input pin.
In these configurations, the relocated resistors make it possible to light multiple LEDs at the same time row-by-row, instead of requiring that they be lit individually.