Picking the flowers is optional in the story, but once collected they can be selected from the menu when feeding your horse. The main game can continue regardless of whether you pick them.