Cotton and Linen need mordants…

.. and were historically dyed using natural mordants like lichens and walnut hulls.  These are called “Substantive dyes”.

(Photo:  walnut hulls floating in a modern dye pot)