It is correct that banana peel will eventually compost. However it can take up to two years. In the meantime, a wild animal is likely to forage this food, teaching them to turn to humans for food, or causing them digestion issues as bananas and orange peels are typically not within their regular diet.