Disk Utility shows a friendly “Macintosh HD” and hides most of what’s underneath. I like to see the real layout once, because it explains a lot of odd things about free space on a Mac.
APFS works with containers and volumes. A container takes the space of a physical partition, and the volumes inside it have no fixed size: they all draw from the container’s free space as they need it. diskutil apfs list prints that structure as a tree, every container with the physical store behind it and the volumes it exports:
diskutil apfs list
On the internal SSD of a modern Mac you’ll find more volumes than you might expect. Apple’s Disk Utility guide explains that macOS is installed on a volume group: one volume for the system files (Macintosh HD) and one for your data (Macintosh HD – Data). Your files live on the Data volume, which is why that’s the one that grows.
To look at one container only, add its container reference, the diskN name the first run printed next to the container:
diskutil apfs list disk5
That’s handy on an external SSD with a few volumes of its own. I’d run this before adding or deleting a volume, so I know which container I’m about to change.
The caveat is the shared space. Because every volume in a container competes for the same free space, the “free” number of one volume says little on its own; the container’s free space is what counts. And the container reference is a synthesized disk with no storage of its own. The man page says you should treat it as an opaque name and never build volume identifiers from it yourself.
Further reading: diskutil man page (SS64 mirror of Apple's man page), Add, delete, or erase APFS volumes in Disk Utility