Why am I paying more than the listed bond price when investing mid-cycle?

I noticed that when I try to invest in a bond, the amount I have to pay is slightly higher than expected. Someone mentioned it’s because I’m buying mid-cycle. Why does that happen, and do I get that extra amount back later?