When someone crosses the laser light due to this LDR lost the laser light and generates a different potential difference across the same comparator terminal.Then comparator generates an output as Low.