As lava cools and hardens, it becomes rock. That's brand new crust! If the rock builds to great heights, a mountain or island forms.
Lava hardens as it is exposed to the air and turns into rock.
As lava erupts over and over again and hardens when exposed to the air, it builds on top of one another, creating mountains and islands if it involves an underwater volcano.