Why was Finland Germany's ally in World War 2?

On the contrary, American pilots flew planes like the F2A Buffalo under the Finnish flag all through the Second World War.

Germany's only two Allies were Italy, and Japan.