i think it’s UAE trying to have their cake and eat it.
As far as I can see the rest of the middle east (esp S.A.) looks down their nose at the UAE because it’s full of casinos, bankers and footballers wives, and they don’t hang people for wearing skirts or allowing a woman to use the telly remote.
So every once in a while they crack down really hard on some unfortunate Westerners, like that guy who got 4 years because there was a speck of cannabis in the tread of his shoe (pardoned 3 weeks later) or the bloke who also got 4 years for having a poppy seed on his shirt from a bagel he ate on the plane.
They then wave the headlines towards SA, say ‘see? We’re well intolerant, us’, before pardoning them all and hoping it doesn’t affect the tourist numbers too much