Calcium was named because of its occurrence in calx.
In 1808, Sir Humphry Davy isolated calcium through electrolysis of lime (calx being the Latin word for lime). He removed mercury from the resulting amalgam via distillation, successfully isolating the new element. Davy then named this new element calcium, drawing inspiration from its presence in lime (calx). He used similar methods to isolate other elements like strontium, barium, and magnesium.