Liquid can be compressed, just not in a scale that you would notice. If liquid cannot be compressed, sonar would not work