It's a feature of Communication safety in Messages. This is opt-in.
https://www.apple.com/child-safety/