You need to download the macOS file from Apple Store. You need to download the macOS BugSur file from the Store, since it is a large file, you need a good enough ...
Until recently if you wanted to upgrade (or downgrade) old Mac to Mac OS X Lion (from 2011) or Mountain Lion (from 2012) you needed to pay Apple and the company would send you a special download code ...