Rental income is passive income and is not eligible for IRA contributions. You must have taxable compensation to contribute to an IRA.
Generally, compensation is what you earn from working.
Go to IRS Publication 590-A Contributions to Individual Retirement Arrangements (IRAs) page 6 for definitions of compensation - https://www.irs.gov/pub/irs-pdf/p590a.pdf3page=6