If you could catch a fainted Pokemon, what would be the point of having different types of Pokeballs? You could just use an ordinary Pokeball to catch a fainted legendary, it would make the game far too easy.