The process of getting excited during sex is similar to what many experience when they experience anxiety, so your mind probably tied the two together this time because you were already
having a bad day. My guess is the
sex was particularly powerful and got the juices flowing more than usual, though I have no idea if that's true. The more people get into sex the more powerful it gets, and it can feel pretty disorienting if one associates it with those feelings.