The cost to the company is determined by the rate of return that shareholders demand.
If interest rates increase (and therefore investing money in the bank would get a higher return) then shareholders are going to want a higher return than before if they are investing in shares.