The tradition of St. Joseph Day altars and tables began centuries ago in Sicily. The Sicilians had been suffering from famine because of the country's poor farming and little if no rainfall.
When they could not provide for their families any longer, the Sicilians turned to their faith. They prayed to St. Joseph so they would have a successful crop and end the famine.
Source: http://www.kansascity.com