After the Battle at Gronder, Edelgard thinks she has time to spend with Byleth in celebration of their victory. As it turns out, he had a celebration with a few others, and things just spiral out from there.
When Byleth returns a few days later, the Adrestian Emperor has a little negotiating to do with him afterwards.