What is 给 doing in 你给宠坏了 and 一个人给丢在家里 (Matilda 玛蒂尔达, p.7)? I bought the Chinese version of Matilda, and I'm confused about this:

Specifically, I'm confused about why 给 (usually meaning &quot;to give&quot;) is in these phrases:

你给宠坏了
You're getting spoiled  [original English (ref.)]
You give spoiled  [literal translation]
一个人给丢在家里
left alone in the house  [original English]
a person give lost in the house  [literal translation]

The use of 给 as &quot;to give&quot; makes no sense to me; perhaps 给 has an additional meaning I'm unaware of.
Question: What is 给 doing in 你给宠坏了 and 一个人给丢在家里?
「給」here is a colloquial, alternative way of expressing the same meaning as「被」. It is non-standard in Standard Chinese.