There's no fundamental requirement that I can think of to grandfather anyone in for anything when making laws.
But it may be politically-sensible to do so in some cases, since obviously if someone has made an investment in something that is banned, they are impacted more than someone who has not, and are probably going to take more issue wirh the law.