OH- is a very poor leaving group (a strong base) hence it cannot be eliminated under basic conditions. But in the presence of acid -OH is converted to -OH2 a very good leaving group and thus elimination occurs.
In the dehydration reaction of alcohols the leaving group is -OH- which is a very strong base. Thus reaction cannot proceed in the presence of other base.