RNA is the first genetic material in cells because:
RNA is capable of both storing genetic information and catalyzing chemical reactions.
Essential life processes like metabolism, translation, splicing, etc. evolved around RNA.
It has the tendency of self-replication.