Digital gates are fundamentally analog in nature. They use transistors. Sure, these transistors are operated at their conduction extremes (which is why they are called “digital”), but during the logic ...
According to textbooks, a sine wave is a wave whose form resembles a sine curve. Often in power electronics, we need a sine wave generator for some applications; a dc/ac power inverter, for example.