multiple factors ....surface not prepared properly,concealing some rust under the paint ,which grows,quality of primer /paint, Environment in which paint work was done,moisture trapped ....etc etc, etc ....And most important .....your luck ...
when you get your car repainted....