You're missing the point. In non-production environments a large user base (eg developers, etc) have direct access to the database as needed for development.
In production environments, they do not.
This is exactly why data masking technologies exist. To mask/transform production data in non-production to that non-production has meaningful data but not REAL data