This is a play on words. The term "core values" means fundamental beliefs. But the "core" of an apple is the stem and seed of the apple. By eating an apple's stem and seeds, the people in the joke improve their core values by literally eating the apple's core.
People who eat their apples stem and seed and all improve their core values .