terminology about ring/algebra in abstract algebra and measure theory

Both in abstract algebra and measure theory is there term ring/algebra, but their definition are different and we can not deduce one from the other, the only requirement in definition they share is that they be closed under two operations: addition and multiplication in abstract algebra while difference and union in measure theory. Why we use the same term for these two different notions in two different branches of mathematics? Is there any connection between them? Thanks!