When you update an app, the new version replaces the old one, so the device needs enough space to store both versions temporarily.