What Sailor said is one way, another is actually the fact that it depends solely on the battlefield.
For instance in the US Army we use attack helicopters for a lot, and with the capability to use Spike A2G missiles, the giant bulb on the apache comes in handy. The Longbow enables the capability to be behind tree cover or a hill or building and allow them to fire.
Safer then a UCAV due to it being able to hide effectively.
Remember, the modern attack copters were made with contested air in mind
Longbow, Spike-ER, Spike-NLOS and other over the horizon ways of hitting for attack helicopter are all fine and dandy to get its engagement range above SHORAD... but when you have to suffer the price and complexity of full on over the horizon weapons, why have them on an expensive, specialized attack helicopter? At this point it's just yet another missile bus. Other helicopters, drones, even stealth jets can deliver similar ones, cheaper and/or better. You can get a F-35 or 4 Reapers for the price of 2 Apaches and may well get more use out of that.
Same goes for the "loyal wingman" program. Why bother squeezing the drone controller in the cramped confines of an attack helicopter, jet cockpit or tank, when you can put them on an AWACS, or command Blackhawk with 6 or 10 drone pilots onboard, or a bunker 300km from combat linked by Starlink?
If there was some kind of improved Commanche program with good radar and IR stealth it could do somethings drones still can't like going full EMCON but that was scrapped, and less stealthy helicopters for survival reasons are now being pushed into relying on similar long range weapons as aircraft, rocket artillery and drones use, making them redundant.