The child was conditioned by the parents to behave that way. The child learned that if they kept asking they would get what they wanted.
When I took care of my nieces and nephews they tried that on me. They got tired of it and stopped. To this day they know I say what I mean. We have a good relationship because of it.