The man behind the mask

I solved this exercise in the wrong way but it was recognized as right by code academy. I now figured out the right way to solve this by introducing a mask, but can someone explain why my original solution (see below) was recognized as right?

I also haven't really figured out how exactly bit masks work or what the point is in using them, so this might help to understand

```
Replace this line with your code.
def check_bit4(input):
if input >= 8:
return 'on'
else:
return 'off'
```