Can anyone please explain why my move was a mistake

New to chess but I thought this was the best move for my knight but the analysis that I ought otherwise

New to chess but I thought this was the best move for my knight but the analysis that I ought otherwise