The confusion comes from thinking that "purpose" or "value" or "meaning" are some kind of existential syrup that gets poured onto you from a great cosmic syrup-bottle, rather than being an inherent part of your existence as a sentient, sapient life-form.