Here's why:
* Transitive verbs require a direct object. The direct object receives the action of the verb.
* In this sentence, "encloses" is the verb, and "the village" is the direct object. The stone wall is performing the action of enclosing the village.
Intransitive verbs do not take a direct object. For example: "The sun rises." There's no object receiving the action of "rises".