This lasted until enrollment declined due to other schools opening in the area.
This refers to a situation where the number of students enrolled decreased due to the opening of competing schools in the area.