Robinhood uses Plaid to allow its users to link their bank accounts to the app. Robinhood doesn’t get this information. It goes only to Plaid, which is a financial intermediary with a good reputation for security. It’s mostly safe to provide your bank password in this instance.
This is admittedly a very weird way to link a bank account, however, so you’re right to ask the question.