That is entirely ISP dependent and many don't actually work like that. Your cable modem gets a specific IP for as long as Comcast or whoever sees fit, restarting does nothing on the WAN side.
In my case a downtime of over 4 hours will switch it. Might just be lease time doing its job.
On cable ISPs, oftentimes, changing the router's WAN interface's MAC address and then rebooting the modem will get you a fresh IP address, but rebooting the modem without first changing the router's WAN MAC address will get you the same IP address.
True, I've had the same IPv4 address since 2018 on Spectrum despite rebooting at least 10 times.
This is simply called the dhcp lease time. Restarting has never forced a change of ip on a system using a dhcp client.