Depending on the interface (SAS Studio, Enterprise Guide, Display Manager) and the run mode (interactive or batch), there will be ODS destinations opened by default (in batch particularly, ODS LISTING) or by settings of the interface.
To prevent SAS from trying to write a .lst file in the current working directory (especially when in batch mode), ODS LISTING CLOSE; is used.