Why do carbonyl compounds undergo nucleophilic and not electrophilic addition?
They sure do. Except that the oxygen has lone pairs, which are more nucleophilic than the $\pi$ bond. Once those electrons attack an electrophile, it further deactivates the $\pi$ bond as a nucleophile.