Both processes involve the movement of molecules
In both processes there is the need for a concentration gradient.