According to this Guardian article, the ban was caused by a plan to hide a bomb in an iPad: https://www.theguardian.com/world/2017/mar/26/plot-explosive... I always thought it was weird that you could keep an iPad packed in your carry on but a laptop had to be scanned separately even if it was a similar size to an iPad.
Every security check in Europe and SE Asia I passed in the last few years (~60 flights) mandated to take every device out of the bag, iPads and smartphones included
The laptop gets pulled out and placed in a bucket. The tablet and phone stay in luggage.
It's all so inconsistent, it makes you wonder if any of the security agencies half any clue at all.