Ammonia ($NH_3$) is a basic gas and would react with acidic drying agents like $H_2SO_4$ and $P_2O_5$. It also forms a complex with $CaCl_2$. Therefore, a basic drying agent like quicklime (CaO) is used.