Because it monkey patches the way imports work. The context manager isn&#x27;t bad really, although there are probably more natural ways to create a python object with the same structure as a JSON file without abusing the import system.