Tea and pregnancy?

I just drank some tea then when i read the box, it said if you’re pregnant to ask a doctor before drinking it... why is that ?? I’m nervous now.