See, here's what happened: Three different scientists decided at different times that they wanted to use the term alkaline.
One decided that it would involve pH (acidity vs alkalinity).
Another decided it would involve the layer of minerals that
buffer pH (what we talk about in aquaria. A high alkalinity usually means a higher pH, but not always, and it protects the water against sudden pH drop due to waste/plant breakdown).
Yet a third decided it would be used to refer to certain extremely heavy metals and salts (some of which are involved in the second alkalinity).
The end result is that we use the term for three different yet related concepts, which is utterly confusing unless you have a degree in chemistry, apparently.