Many of the uses in browsers boil down to their need to distinguish which sites are controlled by the same entity and which are not, for example to implement the [https://en.wikipedia.org/wiki/Same_origin_policy Same Origin Policy], or some equivalent.