Question: why bjt is used as switch?
Answer: The transistor can be used as a switch if biased in the saturation and cut-off regions. This allows current to flow (or not) in other parts of a circuit. Because a transistor's collector current is proportionally limited by its base current, it can be used as a sort of current-controlled switch.