When commercial mix cds are released how does the dj mixing them get permission for each track to appear on the cd and does the profit get sent to each label used from the earnings?

Just curious :)