When a 5-year-old girl in Shanghai suffered brain damage late last year after falling off a bunk bed, millions of strangers all over China helped foot her surgical bills.

The child’s family didn’t pay anything upfront for the coverage, and received a 300,000 yuan (about $44,730) payout that required each contributor to fork out just 0.03 yuan (about half a cent).

Internet...