This is part of how the functionality of how SQL Server works.
Whenever a stored procedure is executing, the text for the procedure is the create statement. This does not mean it is the actual create that was running but the stored procedure itself was executing.