It's because of the sun. Bananas are curved so they can retrieve sunlight. Bananas go through a process called “negative geotropism”. What it means is that bananas grow away from the ground, instead of growing towards it, hence the 'negative' geotropism.