There are indeed special assessments for the roof replacemnt and any other major repair. That is why I dislike HOA’s. They have too much power and the regular monthly fees never seem to go to anything substantial.
Special assessments for major repairs are as real as a heart attack.