In flex layout, the justify-content
property distributes free space in the container between or around flex items (depending on the value).
8.2. Axis Alignment: the justify-content
property
The justify-content
property aligns flex items along the main axis
of the current line of the flex container. ... Typically it helps
distribute extra free space leftover when either all the flex items on
a line are inflexible, or are flexible but have reached their maximum
size.
In grid layout, the justify-content
property distributes free space in the container between or around grid columns (depending on the value).
Note the difference with flex: Here, justify-content
aligns grid columns, not grid items.
10.5. Aligning the Grid: the justify-content
and align-content
properties
If the grid’s outer edges do not correspond to the grid container’s
content edges (for example, if no columns are flex-sized), the grid
tracks are aligned within the content box according to the
justify-content
and align-content
properties on the grid
container.
Here are the grid column tracks in your layout...
...without justify-content: space-between
:

...and with justify-content: space-between
:

Here's a related post that may help with further understanding: