Transistor is a tiny, fast on/off electric-controlled switch (instead of slow mechanical switches with moving parts).
Millions of transistor are used (inside our phones and laptops).
For this circuit, the switch uses a tiny current to control the lamp.