Information about every executable your run on "your" laptop goes to a special server belonging to Apple. It must be a huge and costly mistake...
You can implement malware check in many ways. This one is the worst; it also introduces a huge attack surface.