He wrote your friend’s name to show that he’s not a corrupt cop. But he is. That the money you gave him is going to the govt, but he’s going to pocket it.
It’s like asking a tramp if you’ve a minute to talk about something important, and they take out their fake schedule diary to check whether they have the minute to spare or not. Pretend, pretend..