Could be that the original paint is an old water based limewash type finish which is very soft and powdery and modern paint struggles to stick to it. Especially if parts of the wall gets wet further degrading the limewash layer underneath the paint layers creating loose patches and flaking.
It...