You can refer to this as a doorbell transformer. They are very common and available in many places. The loss in a transformer like this is negligible. Here is one example available at Lowes:
https://www.lowes.com/pd/Utilitech-Doorbell-Transformer/3482857