@kaia because sys.exit() is imported at runtime.You can call exit() at any time in the program.Without that you also wouldnt be able to exit the Python shell.