Neither of the reactions are Markovnikov. Those reactions are radical halogenations. When you are doing Br2 with light, Br will always go to the most stable radical.
First reaction it went to the tertiary radical. In the second reaction , the best radical is primary Benzylic. You don`t want to create any radical on the carbons of the Benzene ring, because you don`t want to break the aromaticity. Also, yes, Benzylic radical is more stable because of resonance.
Hope this helps.