>>I'm trying to lose weight so I can't eat it
Why? Sure, you can't pig out and eat an entire pie in one sitting, but there's no reason you can't eat reasonable portions of the pastries you make.
Do you have a job? Bring the stuff to work and give it to coworkers or just leave it in the office/breakroom/whatever. You could also donate it to a bake sale, fundraiser, etc.
>why the fuck would you cook something you're unable to eat
Maybe because, stick with me here it's going to get complicated, I enjoy the act of cooking per se?
count your calories you pathetic excuse for a human being, you can eat whatever you want. go read the /fit/ sticky and stop complaining about your first world (read: made up) problems online