Electrical panels need to be replaced when they are too old to provide sufficient power, are rusted, produce a burning smell, are overheating, make crackling or buzzing noises, the breaker trips ...
When you update an old house, the most tempting electrical fixes are often the quickest: a new outlet here, a bigger breaker ...