You have to upgrade to Robinhood Gold (which is free for the first month, then $5 a month thereafter).
If and when you open a Robinhood account you have to opt-in to gold to be able to invest with margin.
https://robinhood.com/us/en/support/articles/overview/