This is the socialist perversion of "Greater love has no one that this, that one lay down his life for his friends." (John 15:13).
The former says the "good of the one" has less value than the "good of the many." Consequently it can be used (and has been used) by the State to plunder the one (or the few). What motivates Frodo is love, not socialist economics.