We have the right to download and copy software if it is no longer for sale. (Or music, film etc)
It must be distinguished:
These are two separate things.
Example: Microsoft had stopped selling Windows 98, but it is still illegal to download and distribute applicable for old dos game also.