Can you explain that joke

NSFW A teacher asked her class if anyone could use the word contagious in a sentence. One girl raiser her hand and said, “The mumps are contagious” “Very good”, said the teacher, “Would anyone else like to try?” A boy raised his hand and said,
nsfw
“Our next-door neighbor was painting her house by herself, and my dad said it would take the contagious.”