The shadows are compelled to attack the island's inhabitants by their inherent need to consume the life force of living beings in order to sustain themselves. This primal instinct drives them to seek out and drain the energy of the island's inhabitants, making them relentless in their pursuit.