Except this is neither a state prohibition nor about explosives.
I don't know about the legalities, but it may well be that banks have little choice but to comply versus going against the regulator. Though Barclays' line about "we want to protect your money" is a bit much.