The allocation is from the inlined function in the bufio package. When it is inlined into main, the message shows up when compiling main. When it is not inlined, it still allocates, inside the function bufio.NewReader. You don't see the message when compiling main, but it still allocates.
Maybe the message could be more clear for inlined functions?