Mammals and reptiles aren't considered amphibians, because amniotes are not hypothesized to descend _from_ Amphibia. That is to say that Amphibia did not evolve into Amniota. They are sister clades (actually Reptiliomorpha in the Tree of Life tree below).
![Tree](