But why waste an extra ship and crew if you can build a transport that can also serve as a warship?
Because making something try to be everything means it's good for nothing.
Not necessarily. The original Enterprise
obviously served multiple functions from exploration to defense to scientific missions and I don't see anyone making the claim that it was good-for-nothing. In-universe a functional multi-capability vessel is nothing new.