As an extension to @Dario.Casciato s responseDario.Casciato’s response, there are not only I2CI²C I/O expanders, but also the simple 74HC595 IC, which can be cascaded and used via Arduino's shiftOut function. Needs 3It needs three signal pins for 8 / 16 / 24 ... outputs.
LinkThe link is not a purchase recommendation, but rather a technical hint.