Example 2 Given the sequence $a_{k}=2^{k}(1 \leqslant k \leqslant n)$. Then the sum of all possible products $a_{i} a_{j}(1 \leqslant i \leqslant j \leqslant n)$ is
(1997, Shanghai High School Mathematics Competition)