Renters insurance does not cover the physical structure of the apartment or home you're renting; it only protects your belongings. Carpets are structural components that are not covered under a regular renters insurance policy.
Several perils, such as fire and floods, cause structural damage that necessitates repairs. That type of damage is covered by landlord insurance. Landlords purchase insurance coverage to protect rental properties from damage. For example, flooding caused by broken pipes is a landlord-covered expense to replace damaged carpet, but if you cause the flooding, your renters insurance may cover the cost.