The particle に implies movement and direction. If you said "銀行に出ます", this imples you're leaving to go to the bank. を lacks the implication of direction. You'll see similar use of に and を for boarding/exiting trains and buses.
Ok, but in the case of entering, both should be allowed?
銀行に入ります (I enter towards the bank, bank is destination)
銀行を入ります (I enter the bank, banks is object entered)
This should only be a problem for 出ます?
Why use を instead of に here?
Because you "exit the bank" and not "Exit to the bank".
but you 'enter to the bank'?
(Replying so i get an update)
Yeah, I'm also curious
Wondering the same
You can also use から instead of を
How do you write "exit" in kana here?