This can happen for a few reasons; the sweet potatoes were cut too thick (do not exceed 1/4 of an inch), they weren't cooked for long enough, or the oven wasn't hot enough. Additionally, cooking the sweet potatoes directly on the sheet pan instead of on parchment paper helps them get extra crispy.