This is basically the way the world works, not just mathematics or academia. Someone always captures most of the value and it's not usually the one that did most of the work.