Ah I see, well because LXD has no idea what filesystem or partition layout is in use inside the VM’s disks it cannot resize the partitions or filesystems themselves, only the virtual disk itself. This is what you’re specifying when you set size=4GB.
But you can resize the filesystem manually (if just using a single partition), see these previous posts:
The specific package to install may vary between OSes.