I changed it because "Fuck you, show me the prompt" is baity. We don't have a problem with profanity (https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...) - I'm sure we've restored more "fuck"s in titles over the years than we've removed. We have a problem with linkbait, though, as the guideline you quoted indicates.
Btw, there's another issue. We put the OP in the second-chance pool (explained at https://news.ycombinator.com/item?id=26998308), meaning it would get a guaranteed placement on HN's front page. That's already such a steroid shot that the post can do without a jacked title.