why had farming become unprofitable during this period?
Because they were producing a surplus of grain and it caused prices to drop.