This happened. Someone answered a question and also offered a bounty.
The answer was posted 4 minutes after the question, so I don't think it is a case of offering a bounty and later coming to realize knowing the answer. OP must have intended to do this.
However this has the side-effect that the question cannot now be closed as duplicate, despite the fact that it is a duplicate. This same question gets asked regularly, there are many duplicates.
Is there any legitimate purpose to both offering a bounty and answering it? It seems to me that the answerer has used this as a loophole in the system to gain reputation. If the question is closed as duplicate it will stop getting visibility and therefore votes. But now the guy has got a whole bunch of rep for repeating an answer that already exists many times on the site.
Surely the better outcome would be marking the question as duplicate, and the answerer could have posted the answer on the duplicate.