They are both used to treat pain,
and although
tramadol is not an opioid, it DOES bind to opioid receptor sites in the brain
and so it can lead to tolerance, dependence, and addiction, just like the hydrocodone. Since they both work in the same area, if you're taking them both, you're likely to have more pronounced effects as it's like doubling up.