Why would we deploy EDR and XDR?

Why we deploy both of them if XDR is more powerfull ??! It’s not better and more simple to deploy only XDR ?!