Anthracite forms from the accumulation of plant debris in a swamp environment. When plant debris dies and falls into the swamp, the standing water of the swamp protects it from decay.
When the lava is released from volcano, it undergoes a very rapid cooling which freezes the mechanisms of crystallization. The result is a volcanic glass with a uniform smooth texture.