Straight up is abelism that auto-generated captions censor naughty words. People who need them are (often) still adults that don't need naughty words blocked for them.
iy would guess it's a precaution in case it "mishears" and erroneously turns a non-swear word into a swear word? especially in the past when automatic captions weren't as accurate as they are now. that could easily be a setting, though, or if it knows you're an adult it could automatically switch to an uncensored subtiytle track