A JPG is a DISK file. It’s the storage of the in-memory RGB raster image. This can be done in different ways.
When loaded in memory this file is decompressed and stored as a RGB raster image. The question has all ways been how big is that RGB raster image.