Retirement tax questions

Why when I enter the RMD for an inherited IRA does it then apply a 25% penalty to my taxes when technically I did not need to take an RMD or be penalized for not taking one for 2024?  This is very confusing!  Please explain in detail.  Thanks