Complex sentence: Its natural habitat is rivers but it is becoming rare due to habitat loss.
Split into simpler sentences: Its natural habitat is rivers. It is becoming rare due to habitat loss.