Alkaline earth metals are called so because of two reasons
However Beryllium fulfills 1st reason but its oxides and hydroxides are amphoteric so sometimes they say it is not alkaline earth metal. but as it is amphoteric IUPAC has accepted this as alkaline earth metal