The moment they saw him behind Rapunzel, they knew. They read him. His face showed how much he loved her, how much he cared about her.
They also figured how much Rapunzel loves Eugene. Their beloved daughter loved him. That made him their son, too.
Oh this movie… It deals with all kinds of love…