It is out of gratitude that I prostrate.
When I prostrate to the Buddha, I prostrate to everyone in between I and the Buddha.
Because without their devotions and efforts, I would not be able to learn the great teachings of the Buddha.
Gratitude is a wholesome state of the mind. We should keep our mind in the wholesome state as much as possible. Similarly can be said about offerings.