this path was necessary because the wall that protected the convent had been built to enclose both the convent and the neighboring village , but the convent had been kept intentionally separated from the city .