Why do they tax unemployment???

Thats so unfair. I got laid off at they took off state and federal taxes. What the hell. Im pregnant and needed as much as I can. Upset.