Why do fish have gills?

1.to absorb nutrients from the water into the digestive system

2.to absorb oxygen from the water into the bloodstream

3.to take in oxygen and transport it to the lungs

4.to regulate body temperature
Which one is it!