This is a bit tangential, but how did we get from "size" to "weight"? It seems a bit of an odd phrasing to me. With the exception of ESL mistakes, I don't know of anyone or any software which refers to "file weight", for example.
Because the weight is hidden behind the visible page content, which had a different size. Page weight is the sum of the sizes of the resources used to build the page.