I agree that the location is a little odd, but, the electrical panel is located on the outer wall of the garage, so this object's location does put it half way between the front door and the electrical panel. Although the doorbell doesn't ring in the garage, it rings in the house.

Is it normal to put the transformer so far away from the doorbell itself?
_________________________
Tony Fabris