Tachypnea is the medical term for rapid and shallow breathing, often confused with hyperventilation, which is breathing that is rapid but deep. Both disorders are caused by a buildup of carbon dioxide in the lungs, which causes a buildup of carbon dioxide in the bloodstream.