Every contract is different. Bands and artists just staring out typically do jot have good legal representation or a big enough following to ask fir the publishing rights. So be default the the record company would ask for these rights as part of the deal.
Today, many bands publish their songs using ASCAP or BMI.
You can help the HubPages community highlight top quality content by ranking this answer up or down.