The Cost of Discipleship

Luke 14:26-33
Joel Webbon

If salvation comes freely by grace, rather than be our works, then why did Jesus speak in Luke 14:26-33 of the cost of being his disciple?