Capacitor charge - why a resistance is needed?
It's not necessary, but it makes things simpler. Without it you have (hypothetically) infinite current when the switch is closed, and that's hard to reason about.