they are both cellulose based fiber,

rayon is man made( from tree pulp) , the fibers are being extruded
to form a whole fiber

while cotton is natural fiber, those are the cells of the cotton
plant and the have several layers, and they are hallow in their
inside.