Is the Quasi Contract concept just rooted in the concept of equity-in that courts should be courts of equity?

Is the Quasi Contract concept just rooted in the concept of equity-in that courts should be courts of equity?