Fish are schooling creatures, and do better with more than one. It doesn't matter at all that there is one koi and two goldfish - they just like having company. Koi and goldfish are compatible in needs, speed, size, etc., so they are just fine as buddies.