The chip on the left is used to store data, whereas the chip on the right side acts just like a projector. We can see that there are thousands of dots arranged here. The infrared light is emitted from here.
Since necessary power supply is needed for chip on the right side to work normally, once water damaged, circuits here are most likely to get short. Which can also result in Face ID not working.