Any opened bottles of alcohol has to be emptied before flight ends.
It seems quite a waste so the FA probably decided to share out the wine with the pax.
Some FAs would pour the wine or whatever into their own water bottles for consumption on layovers.