Your rep log indicates that you lost 23 point for the deletion, not 25. The other 2 lost rep are from the downvote.

We can tabulate this out by summing the answer's pre-deletion reputation events:

    +10 upvote
    +15 accept
    - 2 downvote
    ------------
    +23 pre-deletion worth

When the answer was deleted, you lost the total value of the question's reputational worth to you, which was 23 rep.