If the death was close to a census year, have you checked the census to see if he was an inmate of the workhouse?
Just because a person died in the workhouse, does not necessarily mean he was an inmate. The workhouse often provided the only hospital care, so many people died there who were not residents, these people were more likely to be buried in their parish.
Jebber