Why caffeine is considered a “drug” during pregnancy?

Why caffeine is considered a "drug" during pregnancy? - Paras Bliss