It happens because you have different aspect ration for images uploaded to your products. If you want to make all products inline you need to upload all images with the same proportion. Otherwise, you can enable hard crop in Appearance -> Customize -> WooCommerce -> Product images and regenerate all thumbnails.