Why do guys act all lovey dovey one minute and then mean the next?

This happened to my best friend her boyfriend was being rude but then am hour later was telling her he loves her
Why do guys act all lovey dovey one minute and then mean the next?
Post Opinion