You've probably kept them in your Gift Box due to a lack of space in your Storage?
Always make room in your Storage so you can collect the flags, items in your Gift Box expire after some time
Keep in mind that the Gift Box is not a secondary storage space