Agriculture: The decline of the poor man's sector

A country's economic growth, quantified as GDP, is supported by three sectors of production: services, industry, and agriculture.

But in developing countries Agriculture, after all, is one of the "real" sectors to which the society's poorest belong,Why is this situation even exists? what can be done to make agriculture more profitable ?