One reason why they might have asked you this is because working for services like Uber is illegal in Finland (Helsinki is not in Norway), and they might suspect that a darker skinned person driving with a white person at the back is more likely to be an Uber driver (Uber drivers are predominantly from an immigrant background, from personal experience).
Still racial profiling, but maybe not as bad as being stopped for "only" being black.