This is true for contractors, where you have a bunch of batteries, some (human based) system to charge them and keep them charged, so when you need to do something, there's always a battery ready. I have a corded drill, and that thing always works... i need an extension cord, sure, but I plug it in and it works, 1 minute, 1 hour, 10 hours,... it just works. I have a battery powered angle grinder, and the battery is always empty. Need to cut something? Empty... take out the old electric one, do whatever I needed to cut, charge the battery ~half way (storage charge), put it away. Two years later, I need it again.. battery empty. Charge it, but since it went too low (overdischarge, undervoltage), the capacity is reduced now. Work, charge, work, charge, then back to the case for the next two years, and two more years when the battery is empty and practically dead with maybe 5 hours of actual use. In the meantime, I have a circular saw from 1980s that still works.
tldr: if you need power tools once per year or less, corded might be a better choice.