HR and marketing, as business functions, have a lot more in common than might be apparent at first glance.