I don't get why some games were released on Famicom while others were on FDS. I understand FDS had advantages over Famicom, so why limit games by making them for Famicom?

For example, SMB 1 & 2 J were for FDS while SMB 3 was for Famicom. This doesn't make any sense to me.