When flying from the UK to Ireland, you'll clear immigration at the Irish airport.
So why must people connecting in the UK clear immigration (and be photographed at security to prove they did this, rather than using the transit corridor) in order to board a flight to Ireland?
Is it to prevent non-Europeans from entering Ireland posing as Brits by presenting a UK driving licence, and then fly back to the UK (as you don't clear immigration in the other direction)?