A way to store a surplus food that contains high protean and fat is another huge benefit of dairy. Hard cheeses can be stored for years in the right conditions and these conditions are achievable for ancient people (caves).
Good point. Back then salt was valuable in places just short distances from the ocean. Humans need salt, especially when doing hard physical labor, sweating all day.
Not as important today, but more important back then: aging your cheese also concentrates the salt. Salty foods are tasty.