Volcanoes erupt because magma (molten rock) beneath the Earth's surface is less dense than the surrounding solid rock. This buoyant magma rises. As it rises, dissolved gases expand and create pressure. When this pressure exceeds the strength of the surrounding rock, a violent eruption occurs, releasing lava, ash, and gas.
This fact belongs to the general category and contributes to expanding general knowledge. Understanding such facts not only makes you smarter but also helps connect ideas across different fields.