The one provided in the Kubernetes Docs provide explicit examples for each Ingress and Egress traffic control. This is done by providing policyTypes list and ingress field.
The example specifically controls the Ingress traffic in the Docs.
Whereas, the one on the right doesn’t specify any policyTypes. Thus, allowing Ingress and Egress to all the Pods in the same Namespace. This means that without explicit rules, all traffic is permitted.