It might help to imagine a socket with a completely flat face (no chamfer at all). You can see how the flat face would bump into the chamfer or dome between the splines on the screw head. That means the tool would only engage with the splines for about half of their height. Not good.
For best results, you want the chamfer of the socket to match the shape of the screw head between the splines.
If the socket is chamfered too deeply, it would lose engagement with the splines near their base.
If the socket isn’t chamfered enough, it would lose engagement at the tips of the splines. And since torque is most effectively applied near the tips of the splines (because the radius is larger there so the lever is longer, and because the splines present a more perpendicular face to the force near their tips than near their bases), this is the worst scenario. It’s better to err on the side of an overly chamfered socket than an under-chamfered socket.
Unfortunately the cheap sockets appear to err in the wrong direction.
This is a good, safe shape.
However, there are so many Torx variants that sockets with a shallow chamfer may be needed in some special cases. I can’t keep up with all the special screw/bolt heads.