Sure sounds like something from Larry Niven’s “Known Space” timeline.
There’s also a great book by the British author Kazuo Ishiguro (who wrote Remains of the Day) titled “Never Let Me Go,” about a group of young people in Britain who have been bred and brought up solely to be used for supplying organs.