u/vimy was talking about European banks. There is no "pull" there. People freely share their account info because one can only push money in with that info.
That's still not true. Pull-based schemes are widely used across the SEPA region and in national schemes such as the UK's Direct Debits.
A notorious celebrity in the UK famously revealed his bank details as a stunt to show that a large-scale data loss incident wasn't a big deal and he ended up making an unexpected payment to a healthcare charity shortly afterwards.
I don’t know about the UK but in my SEPA country only companies can create pull-based schemes and they can’t do it without authorization of the bank account owner.
Mostly used for things like utility bills. So there’s zero danger in sharing your bank account number with someone.
1. It’s a bureaucratic mess. And scammers will also need to deal with the bank first.
2. With a paper form they need your autograph and other ID data. Or when it’s digital you need to authorize the request with your banking app.