Seems like the problem is not targeting of foreigners but regulations that effect everyone opening a bank account due to the call centre scam problem where people are paid to open bank accounts to be used by scamsters. In addition the masterminds behind most of the call centres and many of the workers are foreigners, mainly Chinese. So it makes sense to be more strict about the type of visas foreigners have.
I have been harassed by a call centre which was set up to sound exactly like a Thai police station. They had all my personal details - full name, phone number, address, ID number, obviously sold to them by a Thai government department, mobile phone operator or other business.
Call centres are scary stuff that scam people out of billions of dollars and abduct people to work in them involuntarily. Tough measures are required to deal with them.