It's likely a playful idea that arose from the enjoyment of fishing and the connection people feel with nature.
While kissing a trout won't actually bring you good luck, it might bring you a smile! It's always a good idea to treat fish, and all living creatures, with respect. Instead of kissing them, you can admire their beauty and release them back into the water.