וְאִ֗ישׁ אֲשֶׁ֨ר יִתֵּ֧ן שְׁכָבְתּ֛וֹ בִּבְהֵמָ֖ה מ֣וֹת יוּמָ֑ת וְאֶת־הַבְּהֵמָ֖ה תַּהֲרֹֽגוּ׃
И если человек будет лежать со зверем, его непременно убьют; и вы убьете зверя.
Siftei Chakhamim
Which was worshipped. Concerning the animal that was with a woman it says בהמה (20:15): “A man who lies [conjugally] with an animal (בבהמה),” whereas concerning the animal that was worshipped it is written (Tehillim 106:20): “They exchanged their glory for the likeness of an ox eating grass.” The verse here speaks of a living animal that was worshipped, which is permitted for secular use and is not forbidden as an animal that was worshipped as an idol or as an animal that was set aside as an offering to an idol, as it says in Temurah (28b).