It was definitely a goal, but you can understand how the linesman could be hesitant to give it.
It's probably impossible to see with the naked eye and from an official's perspective, it's a lot easier to rule it out if it seems marginal than it is to run the risk of giving away a phantom goal.
Just highlights how insane it is that we don't have goal-line technology yet.