Smush unable to optimize product image

I’m uploading woocommerce product through rest API and it seems Smush can’t optimize those images. Though S3 works well.