When a bird is in your garage, it may be looking for food or refuge and usually does it unintentionally. It's hunting for food, or maybe it's simply flying as usual, and it ends itself in a room with no way out.