If I had been trying to take the job away from him in a sneaky, underhand manner, then I deserved all I got. But it was the other way around. I was trying to get him the job.
Sometimes when you're praised about something, sometimes it's deserved, and sometimes it's not deserved. Same thing with criticism. Sometimes the criticism is deserved, and sometimes it's not deserved.