One is software and is explicitly made to be replaceable. Your iPhone will not stop working because you uninstalled the Weather app. It might be slightly more unhappy if you desolder the RAM.
The EU argues that one ought to be replaceable and not the other. Yet the line of which components should be replaceable and which not is undefined.