This is a very formal way to thank someone. It is commonly used in prayers. For example:
Lord, I thank you for all the gifts that you have given me.
Another situation in which you might use "we thank you" is in a formal note to your employees or coworkers at work, like this:
We thank you sincerely for all of the hard work that you have done.