The moment is force * perpendicular distance. Summing gives ∫F(x)x.dx. When F is gravitational and the mass at offset x is y=y(x), that's ∫gyx.dx
The moment of inertia is the factor converting rotation rate, ω, to angular momentum (sometimes called moment of momentum). An element at distance x from the axis is moving at speed xω so has linear momentum xω.dm. The moment of that is x2ω.dm. So this leads to ∫yx2.dx.
(Sorry, just realized I've swapped x and y c.w. the link you posted. Can't be bothered to swap back.)