It’s important to understand that not all versions of macOS (or Mac OS X) work with all hardware configurations.
While the process is pretty straightforward, getting your hands on older releases of macOS isn’t so easy. Got an old Mac and want to reinstall macOS? Maybe you want to roll back your Mac to an earlier version of macOS than the one you currently have installed?