This is just for convenience, as @makalele was pointing out.
The shifting operations are really fast and are convenient for bit masking.
Left shift is a multiplication by the power of two, and right shift is a division by the power of two. These operations are way faster than the their equivalent * or / operations.