In the case of selling goods, the VAT is declared in Estonia only if the goods are dispatched from Estonia. For example, if an Estonian company dispatches goods from Spain to Germany, then the sales turnover does not arise from Estonia under the VAT rules.
It is also applied when your products are sold, stored, and produced in another EU country by third parties.