I can’t see you did anything wrong. The ticket doesn’t have to be in your name, and the railcard was indeed yours.
A carefully worded appeal should be successful. However we do find that only the third appeal, which is more independently assessed, actually does anything other than decline it...