the compressor is cooled off by ambient air and by the cold refrigerant vapor being sucked into it, It gets very hot when its working and if you pour water on it - the compressor case will warp and the rotor inside it will wear it down very fast.
This totka is perfect for sleazebag A/C repair shops - to guarantee future business.
You can spray water on the condenser if you want, - it is done in some cases to simulate running.