If you have a long taxi to the runway with lots of stop-starts or riding the brakes to control speed, then the brakes could be quite hot at the start of the TO roll. There will also be a lot of heat in the tyres and maybe a dragging brake.
After TO when the gear is retracted there is no airflow to cool the brakes and an overheat warning could be triggered.