You'd think something like that would be covered as you'd want everyone in the building to have one, and for it to be maintained to the same standard.
I think that is why the builder installed them in each unit right from the get-go, and made them hard-wired so that people wouldn't be casual about this sort of thing and "forget" to buy themselves a battery-operated smoke detector and therefore have none at all. I don't really know if people who have bought the units from the original owners or subsequent owners since the time of construction have replaced their smoke detectors or not.
With the exception of water/sewer services, there is nothing centralized here for which we pay via our monthly condo fees. This is not one huge big building with a couple hundred units in it. The complex consists of fourteen "garden-style" buildings, each with fourteen units. Residents/owners are responsible for everything inside the unit, which includes HVAC, electricity, phone service, cable service, interior maintenance, appliances, etc., etc. HVAC system, hot water heater and appliances were provided with the units at the time of purchase and then of course over time people have replaced the original ones with new HVAC unit, refrigerator, stove/oven unit, dishwasher, hot water heater, washer and dryer as needed.
When I bought this unit it was ten years old and so I replaced the washer and dryer and the dishwasher, but both the fridge and stove were in good shape so kept them and later on, I think about four years later had to replace the fridge. Hot water heater had to be replaced around that time as well, and then again more recently, some years later. Since I don't do much cooking and what I do mostly works just fine with popping it into the microwave, the original stove-cum-oven unit is still in here, but the stovetop/burners (electric, not gas) all work just fine. Don't know about the oven since I've never actually used it. If I were selling this place undoubtedly a new buyer would replace ALL of the appliances, start from fresh with more updated ones.