The_category() function is used to display categories in the post of the blog. A link to the category archive is automatically created by wordpress which is always good for the blog. But many users does not want to give links to the post categories.
In order to display category name without a link to the category archive, you need to edit the page/php and open replace the_category( ) with this code:
$category = get_the_category();