Qatari Law is based on Islamic Shariah Law which prohibits homosexuality altogether, never mind homosexual marriage.

Marriage to cousins is not considered incest here. I do agree though that marriage to cousins can lead to genetically driven health problems. I believe in the UAE (and maybe here) health screenings are compulsory for potential couples to reduce the health risks.