I've read entire Chapter 14: Organometallic Compounds of Francis Carey's "Organic Chemistry" but I still didn't get an answer to my question.
Quote from the book:
Because of their basicity organolithium compounds and Grignard reagents cannot be prepared or used in the presence of any material that bears a $\ce{-OH}$ hydroxyl group. Nor are these reagents compatible with $\ce{-NH}$ or $\ce{-SH}$ groups, which can also convert an organolithium or organomagnesium compound to a hydrocarbon by proton transfer.
Fine. No arguments with that.
Terminal alkynes also give alkanes with Organolithium and Organomagnesium compounds.
Must be true if he says so. Now coming to the point,
- Ammonia and Amines have $\mathrm{p}K_\mathrm{a}$ around 36.
- Terminal alkynes have $\mathrm{p}K_\mathrm{a}$ of 25.
- Aldehyde $\mathrm{p}K_\mathrm{a} = 17$, Ketone $\mathrm{p}K_\mathrm{a} = 19$ and an Ester $\mathrm{p}K_\mathrm{a} = 25$.
- Water & Alcohols have $\mathrm{p}K_\mathrm{a}$ of 15–18.
If organolithium compounds and Grignard reagents act like bases with alcohols, terminal alkynes, and amines/ammonia, why do they act like nucleophlies and give addition reaction with carbonyl compounds? Why don't they act as bases and give alkanes instead? What am I missing here?