Why is caffeine bad during pregnancy?

I know you're supposed to limit or ideally eliminate caffeine while pregnant but what o want to know is why? What have you been told it can do to harm the fetus? What has your own research told you? This is strictly for curiosity sake.