If you want to rename identifier only in the code, use F2 (or Source/Refactoring/Rename Identifier).
It would be nice, though, if Lazarus would warns us when we try to rename some form component with F2.
Well "rename identifier" uses codetools. I.e., its a Pascal aware rename. (unlike "find/replace in files, which is brute force, but therefore can be faster).
My guess is, that "rename identifier" has about 70 to 80% of the info it needs to detect (and even act on) forms too. But, then, as usual, the last few percent always take the most work.
In other words, its a reasonable feature request, to make "rename identifier" aware of this. But I have no idea on how likely it is that anyone will pick up that task anytime soon.
Also there are 2 scenarios here:
1) You rename Button1 => then you start inside the form, and all it needs is detection, and redirect the action to whatever existing code runs when you would have done it via OI.
2) You rename TButton (or your own registered components). Then other many forms may have "Button1: TButton" => and that is a more complex story.