If the container is running as root, and you escape the container, you are root on the host.
Containers share the kernel with the host, and are only as isolated as the uid the process in the container runs as and the privileges you grant that container.