They probably know that they would quickly become disgusting and be inhabited by homeless people. There are very rarely free to use public toilets in Thailand, probably also for this reason.
As wonderful as Thai people are, they don't really like following rules or laws, nor enforcing rules or laws, as a result, there needs to be no choice but to comply.