XAMPP is a cross-platform distribution containing Apache, MySQL, PHP and Perl. It is NOT packaged in Ubuntu! Installing LAMP, which consists of the same components, is recommended instead and as easy as installing XAMPP.
XAMPP is a free and open source cross-platform web server stack package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages.
XAMPP is not available as a package from the Ubuntu repositories and has to be installed and maintained manually.
Ubuntu provides packages for the individual components that make up XAMPP, as all major Linux ditributions do. This so called LAMP stack can be installed with only one command in Ubuntu and will automatically receive security patches via software update process (APT package manager) for as long as the release is supported by Canonical.
See the lamp tag wiki page here on AskUbuntu for more details.