Mega Man games up through a certain point did make it to the GameCube, but not all ten main entries.
There is a Mega Man Anniversary Collection that includes Mega Man 1 through 8. However, Mega Man 9 and 10 came out after the GameCube's era, so they are not part of that collection or on the system. If you want the classic run of games on GameCube, the Anniversary Collection covering 1–8 is your best bet, while 9 and 10 need to be sought elsewhere.