In ancient Greece, you could kill a child up to the age of two....if they were unwanted, inconvenient...didn’t matter. I studied this years ago. How could they have “forgotten” it? All cultures are not the same.
Yes, If an infant was deformed, or considered less than perfect in some way, I understood the practice was to bury them in a jar as a way to dispose of them.
The Viking upper classes had similar ideas: after birth the child was presented to the father; if he considered that it simply wasn’t up to scratch in any way, then out it went. (The babes were just abandoned in the forests).
Life was tough in those days - slavery was widespread - and they couldn’t afford to support the less able!