From gas dynamics with large friction to gradient flows describing diffusion theories