By default, each file is shown by its virtual size. This means that cloud files, including iCloud Drive files, that are not downloaded locally are displayed by the size that they have in the cloud.
To show cloud files by their physical size, or allocated size, you can change the Size mode from Size to Allocated Size. For more information, please refer to Size mode.