A treat is something wonderful and special. It can be an experience like going to the theatre, or it can be something to eat. Treats are things you only have sometimes, perhaps as a reward or to really enjoy yourself occasionally.
In your sentence the apple pie is being described as one of the special items of food on offer, to make you want to buy it!