This has been the case for 11 years already!?
https://thaicrisis.wordpress.com/2008/08/13/they-did-it-law-...
https://thaicrisis.wordpress.com/2008/08/13/they-did-it-law-...
The TM30 foreign resident laws in Thailand were put on the books in 1979 but they only decided to start enforcing them (albeit extremely inconsistently) in the last few months.
Edit: found it. https://www.theguardian.com/world/2016/aug/10/thai-regulator...
Edit: to clarify I don’t think the two are linked specifically - most services/purchases like this in Thailand require some form of Government ID. For locals that’s usually an ID card, some places will accept my Thai drivers licence others want passport.
I’m not saying it’s always been enforced but it’s not “the last few months”.