It's possible, or maybe he isn't in pain at the moment, but he remembers past pain while peeing in that particular litter box or in that location. Are your boxes covered or uncovered? What do you clean them with?

Are the 3 litter boxes in the same area of the house? What happens if you put new ones in different locations?