Are birds really reptiles?

But by that reasoning then crocodiles can’t be reptiles either…