2010 and newer have iCloud Lock and MAS installer Lock to the user that bought it initially, 2008 and 2009 firmwares don't have it. 2015 and newer can have remote MDM enabled.
Maybe yours had the Firmware Lock enabled. There are several workarounds for older Macs that have firmware password enabled.
With Macs that have remote MDM, you can't do anything. iCloud Lock can be circumvented with Macs that don't have the T2 Security chip.
Thank you tsialex for sharing this with us. Would you also be ok in sharing those workarounds for older Macs with firmware password enabled as I wouldn't mind learning more tricks. Thank you.