You are ignoring that saltwater is available in many, many more places than freshwater. Building a local efficient desalination plant can absolutely be more cost-efficient than transporting freshwater for hundreds of kilometres. Don’t simplify so much you lose all perspective.