Hi Rodrigo,
I suppose that this is what Ilian meant. Mathematica and WolframAlpha actually factor both numbers 25 and 49 correctly. WolframAlpha's suggestion that 25 contains two distinct prime factors is indeed unexpected.
If you run
Table[WolframAlpha["factor " <> ToString[m^2],
IncludePods -> "PrimeFactorization",
AppearanceElements -> {"Pods"},
TimeConstraint -> {30, Automatic, Automatic, Automatic}], {m, 2,
10}] // TableForm
which gives just the WolframAlpha output with the parenthesis, you see that
$5^2$ behaves oddly:

Cheers,
Marco