It depends a lot on your game. Sometimes you can animate the parent node. For example, if you want to create a moving platform. Since Godot 3.2, you have some built-in features to do that with the animation player.
In other cases, you'll want to animate a sprite, etc. In this case, we chose to have the animation on the sprite because it has a small amplitude and it's only cosmetic. Animating the KinematicBody2D node, that is to say, the entire Coin, would be another valid option.