If you purchased this machine in 2018, it probably was a 21.5" iMac released in 2017. Apple stopped making 24" iMacs in Late 2009 when the first 21.5" iMac came out – and did not resume making 24" iMacs until 2021, when the 24" M1 iMac came out.
There were two 21.5" 2017 iMacs: a Retina model, and a non-Retina model.
For both, the original OS (and lowest version of macOS that they can run) was macOS 10.12.4 or 10.12.5 (Sierra). The most recent version of macOS that either can run is Ventura.
I'm not sure why you would want to go back to Catalina, given that
- Catalina won't run 32-bit applications – the way that Sierra, High Sierra, or Mojave would; and
- Catalina isn't one of the "most recent three" – the way that Ventura is.
If your iMac is indeed from 2017, it would seem that Catalina is one of the worst choices you could make in terms of application compatibility!
Also, I do not see how you could be running Sequoia on that iMac unless you used some sort of hack to install it. To be running Sequoia on a 21.5" iMac in a supported way, that iMac would need to be from 2019. In which case the earliest version of macOS that runs on it would be macOS 10.14.4 (Mojave) – and once again, Catalina would seem to be a bad choice in terms of application compatibility.