Norodnik,
Matches & lighters aren't in your pocket instead of your carry on baggage for a security reason. They're there in case one of them ignites.
A flame starting up in your pocket will certainly get noticed - and presumably doused
- before it becomes a severe fire. A fire tucked away in an overhead locker can become established & spread long before it is noticed, let alone found & extinguished.