I thought filing the federal return was free and only pay the sttate return. I dont get it!! Help!

Can anyone help with this?