This “sideloading” method works perfectly because the app has no DRM that ties it to a specific hardware ID.
Click on your profile icon or name in the bottom-left corner of the window.
Downloading GarageBand for macOS Catalina 10.15.7 can be challenging because the current Mac App Store version typically requires macOS 14.4 or later