The copyright and patent are both intellectual rights obtained by the registration, but the subjects of protection are way different. Those are explained here: