Unitized body construction is standard because you can travel a longer distance for less money than with the alternative body-on-frame design. https://en.wikipedia.org/wiki/Vehicle_frame#Unibody
Electric cars are often compared to cell phones. Why have cell phones with replaceable batteries essentially died out in the marketplace? I have the same question about modular phones: https://www.cnet.com/news/google-lg-lenovo-modular-phones/