It is legal for the landlord to require you to purchase renters insurance as part of your lease. Some do require it, some do not. It just depends on the landlord and lease in question. If you do not want to obtain renters insurance, either negotiate it out of the lease with the landlord, or look for a different place.*
*This answer is intended for informational purposes only, and does not create an attorney-client relationship.