The nice guys at Apple adds a brand new feature in Ventura:
When you want to compress items, if one (or many) is (are) locked, you get an error window:
Google translate:
The operation could not be completed. Operation not permitted
One have to search for locked item(s) and unlock it/them, compress (generate a zip) and re-lock…
FWIW.