Older installers have been disappearing from availability.
If the older release you're interested in—Lion 10.7, here—is still in your Mac App Store list of previous purchases, then you can usually download it there.
You can then run a web search for the sequence to build a bootable USB installer.
The older OS X releases did not have an officially-documented sequence, where the newer releases from El Capitan and later have the Apple-provided createinstallmedia tool to build a bootable kit from the Mac App Store kit download.
Or probably better for most applications as Lion is pretty old, download and build a bootable installer and use El Capitan, High Sierra, or whatever is the most recent supported by your particular Mac. Search for the Apple support note for details of the createinstallmedia tool, too.
One of the more common reasons for installing an older release is a corruption of some sort, and corruptions on older hardware can be due to a failing hard disk. Failing hard disks routinely show up as performance problems, app and system corruptions and hangs and crashes, and other degenerate behaviors.
Another reason can be preparing for sale or giving away, and loading El Capitan, High Sierra, Mojave or Catalina can work just as well for that.