I've actually written on this topic before:
It used to be acceptable to dress young boys in dresses. Nowadays dresses are considered "feminine," and dressing a young boy in a dress would be cause for some side-eye. Why did this change?