When not have ac line power (power outage) current will flow from the positive polarity of battery through resistors-R1 to bias to base of Q1, cause Q1 conduct current, Q2 so also conduct current. The lamp so glow up as during time equals voltage of battery still which about nearly 30 minutes