So obvs for older kids and for men and women there are anatomical differences that mean it is valid to split clothes by gender, but that difference does not exist for younger kids.
I think supermarkets in particular could do something better than reinforce gender stereotypes for babies...