Why do fish need salt water to live?

Salt water fish need salt water, fresh water fish need fresh water. Humans need air. Its just the environment that it grows in.