The beginning of a thought helps a person in the middle and end of the deed, so that it continues in holiness.
If he did not think in holiness at the start, a stumbling will occur in the middle and at the end.
Sefer HaMidos, Repentance, Part I §28