I think stackoverflow, reddit, etc. clearly know this is less effective, but they are probably simply following the law regarding "Native advertising" [1] which applies to "content that bears a similarity to the news, feature articles, product reviews, entertainment, and other material that surrounds it online"
[1] https://www.ftc.gov/tips-advice/business-center/guidance/nat...