It is even more funnier when you realize that because Claude and all AI models are trained on data including stackoverflow.
So I guess if you asked Claude why it did that, the truth of it might be "IDK I copy pasted from StackOverflow"
The same stuff pasted with a different sticker. Looks good to me.