Purpose of scattered thing or food under tree? We often see things scattered under the main tree in the Buddhist Theravada temple yard. There is also fresh fruit cut open. It seems they are put under the tree deliberately and regularly. Does anyone know what is the purpose of this?
The fruit etc is probably offerings to the spirit that lives in the tree. Worship of tree spirits (or dryads) is widespread through South and South-East Asia, and a very common element of traditional Buddhism. In Thailand such spirits are known as Nang Mai.

A Buddhist Tree Shrine, Thailand.
Tree spirits (Pāḷi rukkhadevatā) can be found in the Cūḷadhammasamādāna Sutta (MN 45; p.406 in the Ñānamoḷi and Bodhi translation). Tree spirits along with other nature spirits are also found in the Gilānadassana Sutta (SN 41.10). They are also found in a number of Jātaka tales. According to Bhante Dhammika, in his essay Trees in the Buddhist Scriptures, it was common practice to make offerings to such tree spirits:

Other trees were worshipped and given offerings because the spirits were believed to grant wishes. Milk and water were poured on the roots, garlands were hung in the branches, lamps of scented oil were burned around them and cloth was tied around their trunks (Ja.II,104). There is the occasional mention of animal and even human sacrifices being made to trees. The victim’s blood was poured around the foot of the tree and the entrails were draped over the branches (Ja.I,260; III,160).
Note Ja = Jātaka.

Many animist elements, such as yakṣas and nāgas, are evident at every level of the early Buddhist texts and must have been assimilated very early on.
According to the London Buddhist Vihara website offerings of flowers etc, and food, are made from feelings of devotion and not with the expectation of reward.