Loss of rent has a trigger, and it is damage
This cover responds when fire, water or another insured peril makes the property uninhabitable, paying the rent you would have received while it is repaired. A tenant who loses a job and stops paying has not caused an insured loss, so nothing responds. The two situations feel identical to an owner and are entirely different to a policy.
Eviction costs are not an insured loss either
Legal fees, court time and the cost of recovering possession are business expenses of being a landlord. Some specialist products address them; a standard landlord policy does not, and expecting it to is a common and expensive assumption.
Damage beyond the deposit is a real claim
Where a tenant causes damage that exceeds the deposit, that can be a claim on your policy if it meets the definition of a covered peril and is not ordinary wear. Vandalism by a tenant is covered on some forms and excluded on others, which is a specific thing to check rather than assume.