Because of the definition of sediment that I posted and supported with other sources. Here is the definition again:
"
Sediment is a naturally occurring material that is broken down by processes of
weathering and
erosion, and is subsequently
transported by the action of wind, water, or ice or by the force of
gravity acting on the particles."
How would lava fit into that? Igneous rock starts as magma. Lava is just magma (molten rock) at the surface. It has not been weathered. It has not been broken down.
National Geographic's error may have arisen from people sometimes calling solidified volcanic magma "lava". Abd that material can be weathered and broken into pieces and then be in the form of sediment. But no one in geology would call that "lava". Hawaii has quite a few black sand beaches. The sediment is weathered and broken up "lava". But once again, no one calls it that in geology.
en.wikipedia.org
Properly defining the terms that one uses is very important in the sciences to prevent confusion.