Yup, trees can get hit by lightning, and that is one reason why you should not hide beneath them in a thunderstorm. If you do and lightning strikes, taking one step away from the tree, your feet bridge a voltage difference of thousands of Volts, resulting in severe physical hazard.
And now that warning is out of the way, let's discuss the background image above: this photographer was either extremely lucky, or very persistent: what are the odds of the tree you have your camera aimed at being struck by lightning? And if it does, how do you trigger the shutter just in time? Or was it a long duration exposure? At any rate, it is a magnificent picture!