It isn't really formal. It has nothing to indicate formality or a conversation in the sentence. It can't really be metaphorical since there's no sign of figurative language either. It seems to be an idea of how the life must be appreciated. A lesson, maybe.
One of the definitions of philosophical is: <em>"having or showing a calm attitude toward disappointments or difficulties."</em>
This is process of painting the opponent as a soft criminal, immersed in his self interest, dishonest and corrupt candidate who is going to be a danger to the nation.