A small branch bank might not actually have 25K, 50K or so in the vault. My banks ask me to let them know a day ahead of time if I need bigger bills. They also have a rule about withdrawals from the drive-up. They say they don’t want to count out big numbers where it can be seen from outside. So you just go inside for bigger deals.
We were inside and it wasn’t a smaller branch. I usually only take out a few dollars in cash but if I ever want to take out a few thousand, I’ll probably call ahead. It’s still annoying in my opinion. A person may not always know a day ahead that they need to do this.