Hello.
The uploads/YEAR folders store files from the media library. If you optimize this folder directly, Wordpress will not know the correct information about these files. Therefore, we have eliminated the possibility to optimize these folders directly.
You can set up a scheduled optimization...