I've occasionally wondered about that myself. Googling
interactive python after file
gave a result that mentions:
When a script file is used, it is sometimes useful to be able to run the script and enter interactive mode afterwards. This can be done by passing -i before the script.