If you compare to any commercial airliner you have transponder for communicating some things, but you also have collision alarms such as the one screaming "TERRAIN" or "PULL UP" if you are about to smack into the ground. That system is a ground radar of some kind.
On a car the navigation system is also separate from the front collision avoidance radar thing that will scream at you if you are about to hit a slower car in your lane.
So from a lay persons perspective it seems absolutely insane that a warship wouldn't have several radar and sonar based collision avoidance systems in addition to (or perhaps working together with) any transponder/GPS (AIS) systems.