Putin is the leader of a traditional religious country, his views are reflected in a lot of other countries with similar religious views. Gay marriage has only been legal in the UK for 10 years largely due to religion. He's basically just reflecting the views of a lot his voters, and most other people who follow traditional Abrahamic religions.
You think Putin needs to appeal to the electorate to get voted in?